Skip to content

Commit

Permalink
Update docker images to use non-root user (#2289)
Browse files Browse the repository at this point in the history
  • Loading branch information
stwiname authored Mar 6, 2024
1 parent 94f7833 commit adb72e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/node/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ RUN apk add --no-cache tini curl git && \
yarn cache clean && \
rm -rf /root/.npm /root/.cache

# Make the user not ROOT
USER 1000

# Set Entry point and command
ENTRYPOINT ["/sbin/tini", "--", "bin/run"]
CMD ["-f","/app"]
3 changes: 3 additions & 0 deletions packages/query/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ RUN apk add --no-cache tini curl git && \
yarn cache clean && \
rm -rf /root/.npm /root/.cache

# Make the user not ROOT
USER 1000

# Set Entry point and command
ENTRYPOINT ["/sbin/tini", "--", "bin/run"]
CMD ["-f","/app"]

0 comments on commit adb72e9

Please sign in to comment.