FROM python:3.11-slim WORKDIR /app # System dependencies (for WeasyPrint) RUN apt-get update && apt-get install -y \ libpango-1.0-0 libpangoft2-1.0-0 libcairo2 libgdk-pixbuf2.0-0 \ libffi-dev libssl-dev \ && rm -rf /var/lib/apt/lists/* # Python dependencies COPY pyproject.toml . RUN pip install --no-cache-dir pip setuptools && pip install --no-cache-dir -e . COPY . . CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]