Python 3.12 + Django 5 + Gunicorn REST API starter (multi-arch amd64/arm64, non-root, healthcheck)
10K+
A production-grade, lightweight Python 3.12 + Django 5 + Gunicorn REST API
starter. Serves JSON via plain Django JsonResponse views — no DRF, no
database — so the image is tiny and boots instantly. Part of the minhle202
family of Docker Hub starter images by Lê Đức Minh.
latest — multi-arch (linux/amd64 + linux/arm64).docker pull minhle202/django-api
docker run --rm -p 8000:8000 minhle202/django-api
curl http://localhost:8000/
curl http://localhost:8000/health
curl "http://localhost:8000/api/hello?name=Minh"
GET / → {"name","version","endpoints"}GET /health → {"status":"ok","uptime":<seconds>}GET /api/hello?name= → {"message":"Hello, <name>!"} (name defaults to world)SECRET_KEY — Django secret key. A dev-only fallback ships in the image;
always set this in production.PORT — port Gunicorn binds to (default 8000).venv.HEALTHCHECK on /health.DEBUG=False and env-driven SECRET_KEY by default.Content type
Image
Digest
sha256:3269de300…
Size
53.2 MB
Last updated
4 months ago
docker pull minhle202/django-api