Sign inSign up

ogulcanaydogan/python-gunicorn

By ogulcanaydogan

Updated 7 months ago

Production-ready Python WSGI server with Gunicorn

Image
0

952

ogulcanaydogan/python-gunicorn repository overview

Python Gunicorn

Production-ready Python WSGI application server with Gunicorn.

Quick Start

docker run -p 8000:8000 ogulcanaydogan/python-gunicorn

Features

  • Python 3.12 with Gunicorn
  • Auto-tuned worker count
  • Graceful shutdown
  • Health check endpoint
  • Non-root user
  • Configurable via environment variables

Environment Variables

VariableDescriptionDefault
PORTServer port8000
WORKERSNumber of workersauto (2 * CPU + 1)
TIMEOUTWorker timeout (seconds)30
APP_MODULEPython module:appapp:app

Usage as Base Image

FROM ogulcanaydogan/python-gunicorn
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
ENV APP_MODULE=myapp:app

License

MIT

Tag summary

Content type

Image

Digest

sha256:3fc0670bc

Size

50.5 MB

Last updated

7 months ago

docker pull ogulcanaydogan/python-gunicorn