Skip to content

Instantly share code, notes, and snippets.

@hyperupcall
Created February 1, 2020 01:49
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 hyperupcall/5414b22a3bcd9e1d842929097eceb26e to your computer and use it in GitHub Desktop.
Save hyperupcall/5414b22a3bcd9e1d842929097eceb26e to your computer and use it in GitHub Desktop.
docker
FROM python:3
WORKDIR /usr/src/app
COPY . .
RUN pip install flask waitress
EXPOSE 8080
CMD ["python", "./app.py"]
from flask import Flask
app = Flask(__name__)
@app.route("/")
def index():
return "Hello, Python"
from waitress import serve
serve(app, port=8080)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment