Skip to content

Commit

Permalink
chore(Dockerfile): run as root user
Browse files Browse the repository at this point in the history
  • Loading branch information
bludnic committed Jul 29, 2024
1 parent 0a2e2e7 commit 68fc2d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pro.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ FROM base AS runner
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.

# Don't run production as root
RUN addgroup --system --gid 1001 expressjs
RUN adduser --system --uid 1001 expressjs
USER expressjs
# RUN addgroup --system --gid 1001 expressjs
# RUN adduser --system --uid 1001 expressjs
# USER expressjs

WORKDIR /app

Expand Down

0 comments on commit 68fc2d2

Please sign in to comment.