diff --git a/Dockerfile b/Dockerfile index b8fc3cf..3c9a77b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,12 +20,13 @@ WORKDIR /app RUN addgroup --system --gid 1001 nodejs RUN adduser --system --uid 1001 nextjs +RUN mkdir -p ./.next/cache +RUN chown nextjs:nextjs ./.next/cache + ENV NODE_ENV=production USER nextjs -RUN mkdir -p ./.next/cache - COPY --from=builder /app/public ./public COPY --from=builder /app/.next/standalone ./ COPY --from=builder /app/.next/static ./.next/static