No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
features
rootfs/sbin
test/node/app
.travis.yml
Dockerfile
README.md
requirements-dev.txt
test.sh

README.md

docker-nodejs

A NodeJS docker image running Node 5.

Installation

docker run -p 3000:3000 -p 35729:35729 -v /local/path/to/app:/srv/node/app --link mongo:mongo --name node thomaspwilson/nodejs

Testing

I've got some basic tests built to ensure the image performs as it is supposed to. You need Python to run them.

bash test.sh

Per-instance Configuration

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.