stefanfreitag / flask-hello-world

Simple Flask app to show the Hello World message

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple HTTP Service

A simple Hello World web application. In the background it utilizes Python3 and Flask.

The web server starts by default at port 5000 and exposes a basic HTML page under /. The page shows e.g. the IP address.

Building the image

  • Check out the code from the git repository and run.
REV_TAG=$(git log -1 --pretty=format:%h)
docker build -t flask-hello-world:$REV_TAG .
  • Listing the available images
docker images
REPOSITORY                                                                  TAG                                                                IMAGE ID            CREATED             SIZE
flask-hello-world                                                           latest                                                             c1440e991356        14 seconds ago      113MB
  • Start a container and bind the container port 5000.
docker run -d -p 5000:5000 flask-hello-world:latest
0c362cfed041d0580386e0b7ef24c18317a378a8319744d38f8b81ddf82d3c02

Links

About

Simple Flask app to show the Hello World message


Languages

Language:CSS 31.6%Language:Python 26.1%Language:HTML 22.2%Language:Dockerfile 20.1%