To run: docker run --net=host drewantech/flask:1.0.0
The above command launches the 'test_hello.py' file which serves a webpage at 'http://127.0.0.2:5001/' which prints 'Hello World!' on '/' and '/hello' urls.
To change ip use '--host=#.#.#.#' argument. For example:
docker run --net=host drewantech/flask:1.0.0 --host=127.0.0.1
To change port use '--port=#' argument. For example:
docker run --net=host drewantech/flask:1.0.0 --port=5000
See flask documentation for additional command line arguments.
Image runs with use of 'python_user' in directory of '/home/python_user'. 'test_hello.py' is installed in the '/home/python_user' directory. To install own webserver, it is recommended to delete the '/home/python_user/test_hello.py' file and install the webserver file. Additionally the container environment variable FLASK_APP will need to be updated to point to the new web server's installation location.