# Python, Flask & FastAPI

> Deploy Flask, FastAPI, and Django applications.

- **Category**: Languages & Frameworks
- **Last Verified**: 2026-07-14

Python workloads deploy seamlessly on Kubeletto. Ensure you bind your WSGI/ASGI servers correctly.

## FastAPI Production Dockerfile

```dockerfile
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 8080
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080"]
```

> [!IMPORTANT]
> Uvicorn/Gunicorn servers must bind to host `0.0.0.0` (all interfaces) rather than `127.0.0.1` so Knative routers can forward traffic.

