Dockerizing a Nodejs Express

Login to Docker Hub

$ docker login

create a Nodejs Express container

$ docker build -t {yourDockerUsername}/nodejs-express-api:1.0.0 .

Test the Nodejs Express container by running it. It should be visible at localhost:8080

$ docker run -p 8080:8080 {yourDockerUsername}/nodejs-express-api:1.0.0

Push the container to your Docker Hub account repository

$ docker push {yourDockerUsername}/nodejs-express:1.0.0