Minimal FastAPI app.
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
uvicorn main:app --reload --port 8000Open http://localhost:8000 and http://localhost:8000/health.
The app listens on 0.0.0.0 and $PORT (default 8000).
docker build -t sample-api .
docker run --rm -p 8000:8000 sample-api