Giter Site home page Giter Site logo

simple-nodejs-app-for-docker's Introduction

Simple node.js app for practice docker

standard-readme compliant

Using docker to build a node.js app, then push it on Docker Hub.

This repository contains:

  • The simple-node.js-app

Table of Contents

Installation

Prerequisite:

  • Docker on the local machine
  • Docker Hub account
  • Dockerfile (Dockerfile is needed to be suitable for the platform you are using)

Step 1: Build the application with the docker

Change directory to the root directory of the node.js application

  cd /path-to-node.js-app/

Build and tag the application

  docker build -t bongu1302/demo:v2 .

Check whether the application is built or not:

  docker images

Step 2: Run the application

  docker run -d -p 8080:8080 bongu1302/demo:v1

Notes that -d is run docker in background, flag -p stands for port

Check container is running or not, When the app is built, it is called an image, when we run the image, it is called the container

  docker ps

Step 3: Push the image to Docker Hub

  docker push bongu1302/demo:v1

Authors

@HuynhTanPhat1302

License

MIT © HuynhTanPhat

simple-nodejs-app-for-docker's People

Contributors

huynhtanphat1302 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.