Files
kennethreitz.org/Dockerfile
T
kennethreitz 9b0df60ad5 Replace requirements.txt with pyproject.toml
templates/base.html: Add custom.css stylesheet

AI:

Replace requirements.txt with pyproject.toml and add custom.css
2025-04-22 13:48:17 -04:00

20 lines
350 B
Docker

FROM python:3.12.4-bookworm AS builder
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1
WORKDIR /app
RUN python -m pip install uv
RUN uv venv .venv
COPY pyproject.toml ./
RUN uv pip install .
FROM python:3.12.4-slim-bookworm
WORKDIR /app
COPY --from=builder /app/.venv .venv/
COPY . .
CMD ["/app/.venv/bin/fastapi", "run", "tuftedoc.py"]