Skip to content

ZiadGoondy/Nodejs-application-with-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample nodejs application with docker Conatiner

Installation

    // clone the application with git clone

    // then install the npm modules using
     
    npm install

Running the application

    node server.js

Building docker image

    docker build -t <imagename:version> .

Running docker container

    // 9005 port is given since the docker file contains 9005 port
    docker run -it -d -p <outside-port-of-your-choice>:9005 <imagename:version>

About

How to create a docker container for nodejs application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 86.7%
  • CSS 7.0%
  • JavaScript 4.7%
  • Dockerfile 1.6%