chore: optimize the Dockerfile

This commit is contained in:
Pablo Lara
2024-08-01 15:52:06 +02:00
parent a3555af684
commit 25ec271a7f
-4
View File
@@ -45,10 +45,6 @@ adduser --system --uid 1001 nextjs
COPY --from=builder /app/public ./public
# Set the correct permission for prerender cache
RUN mkdir .next &&\
chown nextjs:nodejs .next
# Automatically leverage output traces to reduce image size
# https://nextjs.org/docs/advanced-features/output-file-tracing
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./