Skip to content

Instantly share code, notes, and snippets.

@hyperupcall
Created February 1, 2020 01:49
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