Skip to content

renattomartins/asd-dev-dockerizing-a-node-web-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ASD - DEV - Dockerizing a node web app

A simple demo Docker+Node web app. This is a simple repository for future reference.

It was based in Dockerizing a Node.js web app tutorial.

Instructions to run the application

  1. Clone this repository
  2. Run the command $ docker build -t <your username>/node-web-app . on cloned project root folder.
  3. See if ok with the command $ docker images, the name of your image must appear.
  4. Run the command docker run -p 49160:8080 -d <your username>/node-web-app also on cloned project root folder.
  5. After this, to test if all the things are ok, you must run curl -i localhost:49160 and you will see:
HTTP/1.1 200 OK
X-Powered-By: Express
Content-Type: text/html; charset=utf-8
Content-Length: 12
ETag: W/"c-M6tWOb/Y57lesdjQuHeB1P/qTV0"
Date: Sat, 13 Jan 2018 19:36:42 GMT
Connection: keep-alive

Hello world

About the development environment

  • node v6.11.5
  • npm v5.6.0
  • docker 17.09.1-ce, build 19e2cf6
  • Git 2.14.1
  • GitHub

About

A simple demo to dockerizing a Node.js web app

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published