Skip to main content
Use this guide when you want to deploy a FastAPI service on Floo, the AI deployment platform for Python APIs.

1. Add a Dockerfile

FROM floo-base-python:3.13
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 8000
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]

2. Add Floo Config

[app]
name = "fastapi-demo"

[services.api]
type = "api"
path = "."
port = 8000
ingress = "public"
If you want the CLI to generate a starting config file first, run floo init fastapi-demo before replacing it with the final shape above.

3. Dry Run And Connect GitHub

floo auth login
floo deploy --dry-run --json
floo apps github connect owner/repo --app fastapi-demo

4. Watch The First Deploy

floo deploy watch --app fastapi-demo
floo apps status fastapi-demo

What You Get

  • a live FastAPI endpoint
  • GitHub-backed deploys for future pushes
  • a simple path to add managed Postgres or Redis later