alexcdev1 5 months ago
parent
commit
9ff8c13c3d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Dockerfile.prod

+ 1 - 0
Dockerfile.prod

@@ -48,6 +48,7 @@ RUN adduser --system --uid 1001 nextjs
 # RUN mkdir -p /app/public/uploads && chown -R nextjs:nodejs /app/public
 
 # 复制必要文件
+COPY --from=builder /app/next.config.mjs ./
 COPY --from=builder /app/public ./public
 COPY --from=builder --chown=nextjs:nodejs /app/.next ./.next
 COPY --from=builder /app/node_modules ./node_modules