A minimal FastAPI service used to showcase Python Docker builds on Seagit: push a branch, the platform builds this Dockerfile, pushes the image to ECR and deploys it.
| Route | Purpose |
|---|---|
GET / |
identifies the running build (service, Python version, commit) |
GET /health |
liveness/readiness probe |
pip install -r requirements.txt
uvicorn main:app --reload --port 8000
# or
docker build -t sg-app-python . && docker run --rm -p 8000:8000 sg-app-pythonThe container listens on 8000 and runs as a non-root user.