File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- FROM python:3.8- slim
1+ FROM python:slim
22
33RUN pip install pip waitress --upgrade
44
Original file line number Diff line number Diff line change 22
33Docker container to run a WSGI Python app using
44[ Waitress] ( https://docs.pylonsproject.org/projects/waitress/en/stable/index.html ) . Images support python 3.6+ and are
5- based on the official python- slim containers.
5+ based on the official ` python: slim ` containers.
66
77[ Pull from Docker Hub] ( https://hub.docker.com/r/tecktron/python-waitress/ )
88
Original file line number Diff line number Diff line change 33set -e
44
55if [ -f /app/app/wsgi.py ]; then
6- DEFAULT_MODULE_NAME=wsgi
7- elif [ -f /app/wsgi.py ]; then
86 DEFAULT_MODULE_NAME=app.wsgi
7+ elif [ -f /app/wsgi.py ]; then
8+ DEFAULT_MODULE_NAME=wsgi
99fi
1010MODULE_NAME=${MODULE_NAME:- $DEFAULT_MODULE_NAME }
1111VARIABLE_NAME=${VARIABLE_NAME:- application}
You can’t perform that action at this time.
0 commit comments