topics/devops/solutions/containerize_app.md
https://github.com/bregman-arie/node-hello-world
https://github.com/bregman-arie/flask-hello-world
git clone https://github.com/bregman-arie/node-hello-world
FROM alpine
LABEL maintainer="your name/email"
RUN apk add --update nodejs npm
COPY . /src
WORKDIR /src
RUN npm install
EXPOSE 3000
ENTRYPOINT ["node", "./app.js"]
docker image build -t web_app:latest .
docker image ls
docker login
docker image tag web_app:latest <your username>/web_app:latest
# Verify with "docker image ls"
docker image push <your username>/web_app:latest
docker container run -d -p 80:3000 web_app:latest
docker container ls
docker logs <container ID/name>
# In the browser, go to 127.0.0.1:80