Alpine-based minimal Python3 + Gunicorn setup.
- Create your own
ADD your_project $APP_PATHin your
- Depending on what your WSGI entrypoint is, you may have to set some of the environment variables as documented below.
8000): The port served by Gunicorn.
server): The Python module serving as the Gunicorn entrypoint.
app): The object inside
$GUNICORN_MODULEthat is called by Gunicorn.
gunicorn): The Gunicorn process runs as this unprivileged user instead of root.
/opt/app): Root path of the application, which serves as working directory and home for
test.sh contains a simple integration test to ensure that the example WSGI
module produces an expected response.