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