Closed tomwillis608 closed 1 month ago
main
The node image runs with root as the default user
The node image does not run with root as the default user
build the Dockerfile
https://sonarcloud.io/organizations/tomwillis608/rules?open=docker%3AS6471&rule_key=docker%3AS6471
https://github.com/nodejs/docker-node/blob/main/docs/BestPractices.md#non-root-user
Resolved in #317
Version
main
Current Behavior
The node image runs with root as the default user
Expected Behavior
The node image does not run with root as the default user
Steps to Reproduce
build the Dockerfile
Additional Information
https://sonarcloud.io/organizations/tomwillis608/rules?open=docker%3AS6471&rule_key=docker%3AS6471