diff --git a/Dockerfile b/Dockerfile index d4a8e4b..4e2fcf8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,8 +40,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 # https://nextjs.org/docs/advanced-features/output-file-tracing