refactor: simplify user and group creation in Dockerfile
This commit is contained in:
parent
a126b84165
commit
b1bb168e4a
1 changed files with 2 additions and 2 deletions
|
|
@ -24,8 +24,8 @@ WORKDIR /app
|
|||
|
||||
ENV NODE_ENV=production
|
||||
|
||||
RUN addgroup --system --gid 1001 nodejs
|
||||
RUN adduser --system --uid 1001 nextjs
|
||||
RUN addgroup -g 1001 nodejs
|
||||
RUN adduser -D -u 1001 -G nodejs nextjs
|
||||
|
||||
COPY --from=builder /app/public ./public
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue