Use npm ci for Reproducible Builds
Description
Detects Dockerfiles using `npm install` instead of `npm ci` for production builds.
What Shoulder detects
How to fix
Use `npm ci` instead of `npm install` for reproducible builds. ```dockerfile RUN npm ci ``` Learn more: https://shoulder.dev/learn/docker/cwe-1104/npm-ci
Applies to
Languages
Frameworks
docker
nodejs
References
Scan for this issue
Detect with Shoulder CLI
npx @shoulderdev/cli trust --rule=docker-nodejs-npm-ci .