Skip to content

Commit

Permalink
fix(docker): use a non-root user
Browse files Browse the repository at this point in the history
  • Loading branch information
louisgrasset committed Oct 20, 2023
1 parent 2a616a2 commit 8f0bc7b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
FROM node:lts

RUN addgroup -S bot \
&& adduser -S bot -G bot


USER bot

WORKDIR /app

COPY src/ /app/src
Expand Down

0 comments on commit 8f0bc7b

Please sign in to comment.