Skip to content

Instantly share code, notes, and snippets.

@messa
Last active Nov 11, 2018
Embed
What would you like to do?
now.sh v1 Flask demo
FROM alpine
RUN apk add py3-flask py3-gunicorn
COPY hello.py .
EXPOSE 8000
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "hello:app"]
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