From 165109fc65975a6f5449c27e906ada12bd4165bb Mon Sep 17 00:00:00 2001 From: Pepe Ziberi Date: Tue, 19 May 2026 22:45:18 +0200 Subject: [PATCH] fix(docker): copy public folder after standalone to ensure assets are present --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 34305f2..3602e9b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -43,9 +43,10 @@ USER nextjs # Running as USER nextjs means files are already correctly owned — no slow chown -R needed afterwards. RUN npm install --omit=dev --legacy-peer-deps socket.io@4.7.4 @react-pdf/renderer@4.3.2 qrcode@1.5.4 --no-save -COPY --chown=nextjs:nodejs --from=builder /app/public ./public COPY --chown=nextjs:nodejs --from=builder /app/.next/standalone ./ COPY --chown=nextjs:nodejs --from=builder /app/.next/static ./.next/static +# Ensure all public files (videos, images, etc.) are present in the runtime image +COPY --chown=nextjs:nodejs --from=builder /app/public ./public COPY --chown=nextjs:nodejs --from=builder /app/.env ./.env COPY --chown=nextjs:nodejs --from=builder /app/prisma ./prisma COPY --chown=nextjs:nodejs --from=builder /app/node_modules/.prisma ./node_modules/.prisma