Quick docker file to run an npm audit on your existing source code
10K+
NPM Version 6+ includes a fantastic audit feature for security auditing!
This is a docker image that you can use as a one-time-use container on any repo that has a package.json and package-lock.json.
https://github.com/mtheoryx/npm-audit-docker
Change into any directory that has both of these
Then run:
docker run -it --rm -v "$PWD"/:/usr/app/ mtheoryx/npm-audit:1.0.0
The output will be the results of the audit.
Content type
Image
Digest
Size
37.2 MB
Last updated
about 8 years ago
docker pull mtheoryx/npm-audit:1.0.0