Skip to content

Commit

Permalink
Add example-flask-upload
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo committed Mar 4, 2016
1 parent a9a3535 commit cbe4669
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions example-flask-upload/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM tiangolo/uwsgi-nginx-flask:flask-upload

COPY ./app /app
9 changes: 9 additions & 0 deletions example-flask-upload/app/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from flask import Flask
app = Flask(__name__)

@app.route("/")
def hello():
return "Hello World from Flask"

if __name__ == "__main__":
app.run(host='0.0.0.0', debug=True, port=80)
7 changes: 7 additions & 0 deletions example-flask-upload/app/uwsgi.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[uwsgi]
socket = /tmp/uwsgi.sock
chown-socket = nginx:nginx
chmod-socket = 664

module = main
callable = app

0 comments on commit cbe4669

Please sign in to comment.