22 lines
516 B
Docker
22 lines
516 B
Docker
FROM python:3.12-slim-bookworm
|
|
|
|
# Install system dependencies for weasyprint
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
libpango-1.0-0 \
|
|
libpangocairo-1.0-0 \
|
|
libgdk-pixbuf-2.0-0 \
|
|
libffi-dev \
|
|
shared-mime-info \
|
|
fonts-dejavu-core \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Install Python dependencies
|
|
RUN pip install --no-cache-dir \
|
|
weasyprint>=60.0 \
|
|
markdown>=3.5 \
|
|
pyyaml>=6.0
|
|
|
|
WORKDIR /docs
|
|
|
|
ENTRYPOINT ["python3", "/docs/scripts/generate-pdf-docs.py"]
|