Guide Home Part 1 - FastAPI Foundations Part 2 - Building Applications Part 3 - Pages and HTML Part 4 - Security and Deployment Part 5 - Going Further Capstone Build Plan Markdown Source All Guides

Chapter 27: Publishing and Deployment

ASP.NET Core deployments publish build output. Python deployments usually install your package and run an ASGI server.

Common production options:

Container outline:

FROM python:3.12-slim

WORKDIR /app
COPY pyproject.toml ./
COPY src ./src
RUN pip install .

CMD ["uvicorn", "recipevault.main:app", "--host", "0.0.0.0", "--port", "8000"]

Deployment checklist:

Do not rely on --reload outside development.