Python 3.12 + FastAPI + Uvicorn REST API starter (multi-arch amd64/arm64, non-root, /docs)
195
A production-grade Python 3.12 + FastAPI + Uvicorn REST API starter image, part of the branded starter-image family by Lê Đức Minh. Pull it and you get a clean, non-root, multi-stage FastAPI service with a health check and auto-generated OpenAPI docs — ready in seconds.
latest — current stable build. Multi-arch: linux/amd64 + linux/arm64
(the right variant is pulled automatically on Intel/AMD and Apple Silicon/ARM).docker run --rm -p 8000:8000 minhle202/fastapi
Listens on port 8000 (override with the PORT env var).
curl http://localhost:8000/
curl http://localhost:8000/health
curl "http://localhost:8000/api/hello?name=Minh"
GET / — service metadata: name, version, and list of endpoints.GET /health — { "status": "ok", "uptime": <seconds since start> }.GET /api/hello?name= — { "message": "Hello, <name>!" } (name defaults to world).GET /docs — interactive Swagger UI, auto-generated by FastAPI
(raw schema at /openapi.json)./opt/venv copied into
the slim runtime image./health.docker stop.https://github.com/DucMinhNe/docker-fastapi — MIT License © 2026 Lê Đức Minh.
Content type
Image
Digest
sha256:071e05bef…
Size
56.2 MB
Last updated
4 months ago
docker pull minhle202/fastapi