Skip to content
/ flask Public

Simple Docker image to display Hostname and IP on the host

Notifications You must be signed in to change notification settings

sbrakl/flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flask

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

Flask with HTTPS

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

About

Simple Docker image to display Hostname and IP on the host

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published