diff --git a/Dockerfile b/Dockerfile index 3c9a77b..d42aaae 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,10 +18,10 @@ FROM node:20-alpine AS runner WORKDIR /app RUN addgroup --system --gid 1001 nodejs -RUN adduser --system --uid 1001 nextjs +RUN adduser --system --uid 1001 --ingroup nodejs nextjs RUN mkdir -p ./.next/cache -RUN chown nextjs:nextjs ./.next/cache +RUN chown nextjs:nodejs ./.next/cache ENV NODE_ENV=production