fix: copy entire .next/server directory (no wildcards in COPY)

This commit is contained in:
sepehr 2026-01-12 00:23:18 +01:00
parent 32e36b5288
commit c770a993ff

View File

@ -55,7 +55,7 @@ RUN chown nextjs:nodejs .next
# Automatically leverage output traces to reduce image size
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
COPY --from=builder --chown=nextjs:nodejs /app/.next/server/*.node ./.next/server/ 2>/dev/null || true
COPY --from=builder --chown=nextjs:nodejs /app/.next/server ./.next/server
# Copy Prisma for runtime - ALL locations including the generated client AND engines
COPY --from=builder /app/prisma ./prisma