Sign inSign up

drewantech/flask

By drewantech

•Updated over 9 years ago

Flask 0.11.1 installed on drewantech/python3:1.0.1

Image
0

152

drewantech/flask repository overview

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.

Tag summary

Content type

Image

Digest

Size

20.5 MB

Last updated

over 9 years ago

docker pull drewantech/flask:1.2.0