This is a simple hello world web application using Node.js and Express framework built on Docker.
- Docker
- Build the Docker image:
docker build -t node-helloworld . - Run the Docker image:
docker run -d -p 3000 --name helloworld node-helloworld - Check the port:
docker port helloworld - Access the hello world web application:
curl http://localhost:<port>/
- if you are using Docker Toolbox:
open http://$(docker-machine ip default):<port>/