A NodeJS docker image running Node 5.
docker run -p 3000:3000 -p 35729:35729 -v /local/path/to/app:/srv/node/app --link mongo:mongo --name node thomaspwilson/nodejs
I've got some basic tests built to ensure the image performs as it is supposed to. You need Python to run them.
If a bash script named
docker-setup.sh is present in the application root, that script will be executed on container start, before the command is given. This allows you to pull down any additional dependencies/packages, run some scripts, or do whatever you need to before NodeJS starts.