We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9a3535 commit cbe4669Copy full SHA for cbe4669
example-flask-upload/Dockerfile
@@ -0,0 +1,3 @@
1
+FROM tiangolo/uwsgi-nginx-flask:flask-upload
2
+
3
+COPY ./app /app
example-flask-upload/app/main.py
@@ -0,0 +1,9 @@
+from flask import Flask
+app = Flask(__name__)
4
+@app.route("/")
5
+def hello():
6
+ return "Hello World from Flask"
7
8
+if __name__ == "__main__":
9
+ app.run(host='0.0.0.0', debug=True, port=80)
example-flask-upload/app/uwsgi.ini
@@ -0,0 +1,7 @@
+[uwsgi]
+socket = /tmp/uwsgi.sock
+chown-socket = nginx:nginx
+chmod-socket = 664
+module = main
+callable = app
0 commit comments