Last active
November 11, 2018 13:14
-
-
Save messa/85adfb2a2db9f9b00c2ca2ed29a39df5 to your computer and use it in GitHub Desktop.
now.sh v1 Flask demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine | |
RUN apk add py3-flask py3-gunicorn | |
COPY hello.py . | |
EXPOSE 8000 | |
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "hello:app"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import flask | |
app = flask.Flask(__name__) | |
@app.route('/') | |
def index(): | |
return 'Hello!' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment