Commit 776d3b6b by zhengtianbao

update

parent e1ec0823
Pipeline #10 passed with stage
in 1 minute 10 seconds
FROM jazzdd/alpine-flask FROM tiangolo/uwsgi-nginx-flask:python3.7
ENV FLASK_APP=test.py COPY ./app /app
WORKDIR /testweb
COPY . /testweb
EXPOSE 5000 EXPOSE 5000
CMD ['/testweb/entrypoint.sh']
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello World from Flask"
if __name__ == "__main__":
# Only for debugging while developing
app.run(host='0.0.0.0', debug=True, port=5000)
#!/bin/sh
flask run --host=0.0.0.0
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello World!'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment