Skip to content

Commit

Permalink
Merge pull request #435 from bcgov/bug/node-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 44c7d56 + c4bf5e8 commit 7ca9aad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ FROM docker.io/node:16.15.0-alpine
ENV NO_UPDATE_NOTIFIER=true
WORKDIR /opt/app-root/src/app
COPY . /opt/app-root/src
USER node
RUN npm install --unsafe-perm \
&& npm run all:ci \
&& npm run all:build \
&& npm run client:purge
EXPOSE 8000
# Switch to non-root user
USER node
CMD ["npm", "run", "start"]

0 comments on commit 7ca9aad

Please sign in to comment.