Sign inSign up

geslot/flask

By geslot

Updated almost 10 years ago

Minimal flask server image (60 MB)

Image
1

114

geslot/flask repository overview

Create your application python file, for example this one:

#!/usr/bin/python
# -*- coding: utf-8 -*-

from flask import Flask, request
app = Flask(__name__)

@app.route('/')
def hello_world():
    return 'Hello, World!'

if __name__ == '__main__':
    app.run(debug=True, host='0.0.0.0', port=8080)

Name it app.py and place it somewhere, for example at /some/location, so full path will be /some/location/app.py

Run your container:

docker run -d \
    -v /some/location:/app/py \
    -p 8080:8080 \
    geslot/flask:0.10.1

You can test your application with curl localhost:8080

Tag summary

Content type

Image

Digest

Size

18.7 MB

Last updated

almost 10 years ago

docker pull geslot/flask:0.10.1