Sign inSign up

sharma02gaurav/node-app-docker

By sharma02gaurav

Updated about 9 years ago

A simple node express app developed using docker

Image
0

92

sharma02gaurav/node-app-docker repository overview

Configuring Docker Node project

This is a simple hello world project developed to demonstrate how to create nodeJS images in docker.

Prerequisite installations
How do I get set up?
  • Clone this repo using
git clone https://[email protected]/sharma02gaurav/node-app-docker.git
  • switch to node-app-docker folder
  • Run the following command to build the Image
docker build -t [your-image-name] .

This will build the image for you.

  • Now you can run this image locally using
docker run -p [access-port]:[redirect-port] [your-image-name]
  • You have to push this image into docker cloud using the following command. Make sure you have the docker account.
docker tags [your-image-name]:[label] [docker-user-name]/[repo-name]
docker push [docker-user-name]/[repo-name]
Deployment Instructions
docker run -p [incoming-port]:[redirect-port] [docker-user-name]/[repo-name]

for example

docker run -p 80:4300 sharma02gaurav/my-node-app

Tag summary

Content type

Image

Digest

Size

250.9 MB

Last updated

about 9 years ago

docker pull sharma02gaurav/node-app-docker