test docker nodejs project
This is a sample docker project. It shows how to build a nodejs project in a docker image. The nodejs project simply prints "Hello World!" on the browser screen.
- Make sure you have Docker installed on your machine.
- cd to this repo
- Run the command:
docker build -t pranavj1001/simple-web-app .
This command builds the docker image with tag name as 'pranavj1001/simple-web-app' - Run the command:
docker run -p 8080:8080 pranavj1001/simple-web-app
This command runs the docker image with the port mapped to the machine and the docker container
Note: The above mentioned guide has been tried and tested on mac. However, the same guide should also work on windows machines.
email me at pranavj1001@gmail.com
MIT License