Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

Node.js Runtime

The final target is to build a image for running the local web site. Like:

docker run -d \
  -p [external-port]:[internal-port] \
  -v [external-path]:[internal-path] \


Prepare the node.js code

$ express -e ~/project/web
$ cd ~/project/web && npm install

Test the code locally

$ cd ~/project/web
$ npm start

Run the application folder

docker run -d -p 3000:3000 -v ~/project/dockerws/web:/data peihsinsu/nodejs-runtime


If run the docker error without error return, you can use "docker logs" to show the execute message in instance.

docker logs [your-docker-id]

If your instance success running, you can use "-f" parameter to show log like "tail -f".

docker logs -f [your-docker-id]
Docker Pull Command
Source Repository