diff --git a/Dockerfile.prod b/Dockerfile.prod index 06202c9..5743964 100644 --- a/Dockerfile.prod +++ b/Dockerfile.prod @@ -41,8 +41,8 @@ RUN adduser --system --uid 1001 nextjs COPY --from=builder /app/public ./public # Set the correct permission for prerender cache -mkdir .next -chown nextjs:nodejs .next +RUN mkdir .next +RUN chown nextjs:nodejs .next # Automatically leverage output traces to reduce image size COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./