Skip to content

Commit

Permalink
build: optimized Dockerfile
Browse files Browse the repository at this point in the history
- combined multiple RUN commands into a single one
  • Loading branch information
TyIsI committed Sep 23, 2024
1 parent 68b9db2 commit 0494473
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ WORKDIR /app

ENV NODE_ENV production

RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs
RUN addgroup --system --gid 1001 nodejs && adduser --system --uid 1001 nextjs

COPY --from=builder /app/public ./public
COPY --from=builder /app/package.json ./package.json
Expand Down

0 comments on commit 0494473

Please sign in to comment.