Skip to content

Commit

Permalink
Use unprivileged "node" user in Dockerfile (#35)
Browse files Browse the repository at this point in the history
* use unprivileged "node" user

* don't chown to node user, better to have no mutate perms
  • Loading branch information
CorvetteCole committed Jul 28, 2023
1 parent 802846f commit 0d98986
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ COPY . .

RUN ADAPTER=node npm run build

CMD ["npm", "run", "start"]
USER node

CMD ["npm", "run", "start"]

0 comments on commit 0d98986

Please sign in to comment.