Node.js server able to run as unprivileged user on ports 80 and 443
6.6K
Basic Node JS server template.
Runs as unprivileged node user, so it is a little more secure. Runs on port 80 by default
As of onbuild-1.1.0, nothing is npm installed globally, so running mocha and other scripts will require an npm script entry, or specifying the bin manually
npm start by default (with authbind), exposes ports 80 and 443
npm install is required, add that as a prestart script in the project's package.jsonnode useronbuild tagBuild an app and run it out of the box.
package.json for npm start script (including a prestart script for npm install if needed)docker build -t dev ./ && docker run -d -p 80:80 devnode-inspector --web-port 8080 > /dev/null 2>&1 &, or run in separate screen (not sure how to suppress output)npm run debug where the debug script is set to node debug index.jsContent type
Image
Digest
sha256:e16b57b36…
Size
104.8 MB
Last updated
about 10 years ago
docker pull shinydocker/node