AdinaY HF Staff commited on
Commit
7ab9876
·
verified ·
1 Parent(s): 33b15ac

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -3
Dockerfile CHANGED
@@ -30,9 +30,8 @@ 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 -g 1001 nodejs \
34
+ && useradd -u 1001 -g nodejs -r -s /usr/sbin/nologin nextjs
 
35
 
36
  COPY --from=builder --link /app/public ./public
37