diff --git a/Dockerfile b/Dockerfile index 2c2466a..742a642 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,8 +24,9 @@ WORKDIR /app ENV NODE_ENV=production -RUN addgroup -g 1001 -S nodejs -RUN adduser -D -H -u 1001 -G nodejs -s /sbin/nologin -S nextjs +RUN apt-get update && apt-get install -y --no-install-recommends shadow && rm -rf /var/lib/apt/lists/* +RUN groupadd -g 1001 nodejs +RUN useradd -m -u 1001 -g nodejs -s /sbin/nologin nextjs COPY --from=builder /app/public ./public