Skip to content

Commit

Permalink
Merge pull request #432 from bcgov/bug/docker-non-root-user
Browse files Browse the repository at this point in the history
Update Dockerfile
  • Loading branch information
barrfalk authored Dec 13, 2023
2 parents 66d30e2 + d52243c commit 6d611ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ RUN npm run all:ci \
&& npm run all:build \
&& npm run client:purge
EXPOSE 8000
# Non-privileged user
USER app
# Switch to non-root user
USER node
CMD ["npm", "run", "start"]

0 comments on commit 6d611ce

Please sign in to comment.