SafdarJamal / docker-node-app

Dockerizing a Node.js web app.

Home Page:https://hub.docker.com/r/safdarj/node-web-app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dockerizing a Node.js web app

The goal of this example is to show you how to get a Node.js application into a Docker container.

Development

To get a local copy of the code, clone it using git:

git clone https://github.com/SafdarJamal/docker-node-app.git
cd docker-node-app

Now that you have some source code and a Dockerfile, it’s time to build your first image:

docker build -t docker-node-app .

Start a container based on your new image:

docker run -d -p 8080:8080 docker-node-app

Visit your application in a browser at http://localhost:8080. You should see your hello world application up and running.

License

This project is licensed under the terms of the MIT license.

About

Dockerizing a Node.js web app.

https://hub.docker.com/r/safdarj/node-web-app

License:MIT License


Languages

Language:Dockerfile 54.4%Language:JavaScript 45.6%