Skip to content

Instantly share code, notes, and snippets.

@messa
Last active November 11, 2018 13:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save messa/85adfb2a2db9f9b00c2ca2ed29a39df5 to your computer and use it in GitHub Desktop.
Save messa/85adfb2a2db9f9b00c2ca2ed29a39df5 to your computer and use it in GitHub Desktop.
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