fix: copy entire .next/server directory (no wildcards in COPY)
This commit is contained in:
parent
32e36b5288
commit
c770a993ff
@ -55,7 +55,7 @@ RUN chown nextjs:nodejs .next
|
|||||||
# Automatically leverage output traces to reduce image size
|
# 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/standalone ./
|
||||||
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
|
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 Prisma for runtime - ALL locations including the generated client AND engines
|
||||||
COPY --from=builder /app/prisma ./prisma
|
COPY --from=builder /app/prisma ./prisma
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user