diff --git a/Dockerfile b/Dockerfile index a62e231..90ef186 100644 --- a/Dockerfile +++ b/Dockerfile @@ -54,9 +54,9 @@ COPY --from=builder /app/public ./public # 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 ./ -COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static COPY --from=builder --chown=nextjs:nodejs /app/entrypoint.sh ./entrypoint.sh +COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./ +COPY --from=builder --chown=nextjs:nodejs /app/static ./.next/static RUN chown -R nextjs:nodejs /app/.next