###Bundling and Running the Docker Container
$ git clone https://github.com/josiastech/node-docker
$ npm install
$ npm test
Assuming you alreade have docker installed and can run docker containers in you machine
$ cd <your project directory>
$ docker build -t node-docker .
# ^ ^ ^
# build w/ tag this directory
# ... lots of output
$ docker run -p 4500:4500 node-docker
# ^^^^^^^^^
# bind the exposed container port to host port (on the virtual machine)
This is the full implementation for 'Dockerizing a Node.js Web Application' Check Source.