Initial commit
This commit is contained in:
21
scripts/Dockerfile.pdf
Normal file
21
scripts/Dockerfile.pdf
Normal file
@@ -0,0 +1,21 @@
|
||||
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"]
|
||||
Reference in New Issue
Block a user