Python 3.12 + Flask 3 + Gunicorn REST API starter (multi-arch amd64/arm64, non-root, healthcheck)
187
A production-grade Python 3.12 + Flask 3 + Gunicorn REST API starter image.
Part of the minhle202 family of Docker Hub starter images by Lê Đức Minh.
Spin up a clean, secure JSON API in seconds and use it as a template for your own
services.
latest — current stable builddocker run --rm -p 8000:8000 minhle202/flask-api
Listens on port 8000 by default; override with -e PORT=9000.
curl http://localhost:8000/
curl http://localhost:8000/health
curl "http://localhost:8000/api/hello?name=Minh"
| Method | Path | Description |
|---|---|---|
| GET | / | Name, version, and list of endpoints. |
| GET | /health | { "status": "ok", "uptime": <seconds> }. |
| GET | /api/hello?name= | Greeting; name defaults to world. |
SIGTERM worker shutdown for clean rolling restarts.appuser (UID 10001)./health.https://github.com/DucMinhNe/docker-flask-api
Licensed under MIT © 2026 Lê Đức Minh.
Content type
Image
Digest
sha256:816710a97…
Size
47.2 MB
Last updated
4 months ago
docker pull minhle202/flask-api