Skip to content

krll-k/node-web-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple web server via Node js for Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published