AdinaY HF Staff commited on
Commit
1b776d4
·
verified ·
1 Parent(s): 413656d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -30,9 +30,9 @@ ENV NODE_ENV production
30
  # Uncomment the following line in case you want to disable telemetry during runtime.
31
  # ENV NEXT_TELEMETRY_DISABLED 1
32
 
33
- RUN \
34
- addgroup --system --gid 1001 nodejs; \
35
- adduser --system --uid 1001 nextjs
36
 
37
  COPY --from=builder --link /app/public ./public
38
 
 
30
  # Uncomment the following line in case you want to disable telemetry during runtime.
31
  # ENV NEXT_TELEMETRY_DISABLED 1
32
 
33
+ RUN groupadd --gid 1001 nodejs \
34
+ && useradd --uid 1001 --gid nodejs --system --create-home nextjs
35
+
36
 
37
  COPY --from=builder --link /app/public ./public
38