Public Repository

Last pushed: a year ago
Short Description
Nodejs Development Environment
Full Description

WHAT IS THIS IMAGE

I wanted to create a development environment for my nodejs so I created an image that maps to a volume inside the container (in this case /app). I can then map this to my local directory such as /Development/Projects/myappname so I can develop it on my development machine, and the container automatically has access to it. All I need to do is perhaps restart the container.

HOW TO USE

docker run -d -t -p 8080:3000 --name <name of your container> -v </host/path/of/your/application:/app noelb888/node-express node <myappname.js>

TO TEST

Just type http://192.168.99.100:8080/ on your browser and change the IP to whatever is your docker machine host ip address.

Node runs an app on a volume called /app. Just map your host directory to the /app and put in your container name and app filename.

Example:

docker run -d -t -p 8080:3000 --name ne-dev-testproject -v /Users/noel/Docker/projects/node-express/volume/app:/app noelb888/node-express node testapp.js

Docker Pull Command
Owner
noelb888