Skip to content

Latest commit

 

History

History
22 lines (20 loc) · 1.81 KB

README.md

File metadata and controls

22 lines (20 loc) · 1.81 KB

How to run?

docker run -p 8080:8080 -d krll/node-web-app

How to use? For example

$ mkdir public
$ echo "Hello World" > public/index.html
$ pwd /home/user
$ docker run -p 8080:8080 -d -v /home/user/public/:/usr/src/app/public --name=app krll/node-web-app
$ docker logs app                                                                                                                          
npm info it worked if it ends with ok                                                                                                                      
npm info using [email protected]                                                                                                                                 
npm info using [email protected]                                                                                                                                 
npm info prestart [email protected]                                                                                                                     
npm info start [email protected]                                                                                                                        
                                                                                                                                                           
> [email protected] start /usr/src/app                                                                                                                  
> node server.js                                                                                                                                           
                                                                                                                                                           
Running on http://localhost:8080