This repository containers the docker file and simple Flask application which would display the machine IP and Host Name
It uses Python 2.7 images with Flask 1.10
Build the image using the following command
$ docker build -t sbrakl/flask:latest .
Run the Docker container using the command shown below.
$ docker run -d -p 5000:5000 sbrakl/flask
If you need to refer files in WithSSL folder.
Copy all file from WithSSL to root on this folder and then do a docker build as above
Certificate are created using OpenSSL for Common name localhost i.e. CN=localhost
If you need certificate for you domain (www.myawesomedomain.com), then you need to generate your own certificates.
Caution This demo uses the Flask developmental server, do not use for Production where you have heavy traffic
###Docker containers If you want to use ready to use containers, you can get image from Docker hub as below For HTTP,
sbrakl/flask
For HTTPS
sbrakl/flaskwithhttps