Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Dockerizing a Node.js web app

File Structure: package.json file => describes app and its dependencies server.js file => defines a web app using the Express.js framework Dockerfile

#Build Image: docker build . -t /node-web-app

#Run Container using image: docker run -p 49160:8080 -d /node-web-app

#Go inside the container: docker exec -it /bin/bash

#Test the container is created or not

docker ps OR curl -i localhost:49160