No longer maintained as github actions offer a better experience than Jenkins.
See branches for actively maintained versions.
- npm
- yarn
- headless karma browser-testing in Chrome and Firefox
- sonar-scanner
- Cypress
which makes it ideal for being the build-environment in CI/Jenkins.
The source to build should be mounted in /app.
Set GOSU_USER=: to the UID of the user running the image (typically Jenkins), this ensures that the "node" user will get this uid/gid, and chown node's home, /home/node which contains tooling - this again make files generated during the build to match the out-of-container ownership.