This commit is contained in:
10
Dockerfile
10
Dockerfile
@ -67,6 +67,16 @@ FROM builder-base AS production
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# ────────────────────── WEASYPRINT SYSTEM DEPENDENCIES ──────────────────────
|
||||
# These are the exact packages required for WeasyPrint to work on Debian Bookworm
|
||||
RUN apt-get update && \
|
||||
apt-get install -y gcc libpq-dev \
|
||||
libcairo2 libcairo2-dev libpangocairo-1.0-0 weasyprint && \
|
||||
apt clean && \
|
||||
rm -rf /var/cache/apt/*
|
||||
|
||||
# ─────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
RUN chown -R appuser:appuser /app
|
||||
|
||||
COPY --from=python-base /app/.python /app/.python
|
||||
|
||||
Reference in New Issue
Block a user