commit 30ef81edb0b9ece67982984522ff279cc0a68eb7
parent 4495cdfc365c255ac0efdb87a587b38010ceb23f
Author: MTRNord <mtrnord1@gmail.com>
Date: Thu, 20 Jan 2022 22:08:17 +0100
Fix addgroup and adduser in Dockerfile
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Dockerfile b/Dockerfile
@@ -23,8 +23,8 @@ WORKDIR /app
ENV NODE_ENV production
-RUN addgroup -g 1001 -S nodejs
-RUN adduser -S nextjs -u 1001
+RUN addgroup --gid 1001 --system nodejs
+RUN adduser --system nextjs --uid 1001
# You only need to copy next.config.js if you are NOT using the default configuration
# COPY --from=builder /app/next.config.js ./