Add Dockerfile
This commit is contained in:
parent
35432d0257
commit
fc020c9dcc
|
@ -0,0 +1 @@
|
||||||
|
env
|
|
@ -0,0 +1,6 @@
|
||||||
|
FROM python:3.4.1-onbuild
|
||||||
|
|
||||||
|
EXPOSE 5000
|
||||||
|
ENV PORT 5000
|
||||||
|
|
||||||
|
CMD gunicorn -w 4 main:app -b 0.0.0.0:5000 --log-file -
|
|
@ -0,0 +1,10 @@
|
||||||
|
import flask
|
||||||
|
|
||||||
|
app = flask.Flask(__name__)
|
||||||
|
|
||||||
|
@app.route("/")
|
||||||
|
def index():
|
||||||
|
return "Hello"
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
app.run()
|
|
@ -2,4 +2,7 @@ Flask==0.10.1
|
||||||
Jinja2==2.7.3
|
Jinja2==2.7.3
|
||||||
MarkupSafe==0.23
|
MarkupSafe==0.23
|
||||||
Werkzeug==0.9.6
|
Werkzeug==0.9.6
|
||||||
|
gunicorn==19.1.1
|
||||||
itsdangerous==0.24
|
itsdangerous==0.24
|
||||||
|
ldap3==0.9.7.1
|
||||||
|
pyasn1==0.1.7
|
||||||
|
|
Loading…
Reference in New Issue