Sign inSign up

stellarhub/flask

By stellarhub

Updated 8 months ago

Image
0

286

stellarhub/flask repository overview

A docker image of Python with flask

Recommended to map a volume for easier code access
docker run -it -v ~/src:/root/src -p 5000:5000 --name flask stellarhub/flask

As the docker is running under a different IP from the host, you need to add "host='0.0.0.0.'" to the app.run command The following is an example

from flask import Flask

app = Flask(__name__)

@app.route('/')
def hello():
    return "Hello World !"

app.run(host='0.0.0.0',port=5000)

Tag summary

Content type

Image

Digest

Size

51.6 MB

Last updated

about 5 years ago

docker pull stellarhub/flask