mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-25 19:15:18 +02:00
chore: update Dockerfiles to install Pandoc 3.x and handle WeasyPrint dependencies
This commit is contained in:
parent
9339a43db5
commit
828e750320
2 changed files with 19 additions and 5 deletions
|
|
@ -122,14 +122,21 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
libcairo2 \
|
libcairo2 \
|
||||||
libpango-1.0-0 \
|
libpango-1.0-0 \
|
||||||
# ============================
|
# ============================
|
||||||
# Report export (Pandoc + WeasyPrint runtime libs)
|
# Report export (WeasyPrint runtime libs — Pandoc installed separately below)
|
||||||
# ============================
|
# ============================
|
||||||
pandoc \
|
|
||||||
libpangoft2-1.0-0 \
|
libpangoft2-1.0-0 \
|
||||||
libharfbuzz0b \
|
libharfbuzz0b \
|
||||||
libharfbuzz-subset0 \
|
# Try to install libharfbuzz-subset0 (WeasyPrint font subsetting for smaller PDFs).
|
||||||
|
# Available on Debian Bookworm+ / Ubuntu 24.04+; gracefully skipped on older distros.
|
||||||
|
&& (apt-get install -y --no-install-recommends libharfbuzz-subset0 || true) \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Install Pandoc 3.x from GitHub (apt ships 2.9 which has broken table rendering).
|
||||||
|
RUN ARCH=$(dpkg --print-architecture) && \
|
||||||
|
wget -qO /tmp/pandoc.deb "https://github.com/jgm/pandoc/releases/download/3.9/pandoc-3.9-1-${ARCH}.deb" && \
|
||||||
|
dpkg -i /tmp/pandoc.deb && \
|
||||||
|
rm /tmp/pandoc.deb
|
||||||
|
|
||||||
# Install Node.js 20.x (for running frontend)
|
# Install Node.js 20.x (for running frontend)
|
||||||
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
||||||
&& apt-get install -y nodejs \
|
&& apt-get install -y nodejs \
|
||||||
|
|
|
||||||
|
|
@ -20,12 +20,19 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
libxrender1 \
|
libxrender1 \
|
||||||
dos2unix \
|
dos2unix \
|
||||||
git \
|
git \
|
||||||
pandoc \
|
|
||||||
libpango-1.0-0 \
|
libpango-1.0-0 \
|
||||||
libpangoft2-1.0-0 \
|
libpangoft2-1.0-0 \
|
||||||
libharfbuzz-subset0 \
|
# Try to install libharfbuzz-subset0 (WeasyPrint font subsetting for smaller PDFs).
|
||||||
|
# Available on Debian Bookworm+ / Ubuntu 24.04+; gracefully skipped on older distros.
|
||||||
|
&& (apt-get install -y --no-install-recommends libharfbuzz-subset0 || true) \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Install Pandoc 3.x from GitHub (apt ships 2.17 which has broken table rendering).
|
||||||
|
RUN ARCH=$(dpkg --print-architecture) && \
|
||||||
|
wget -qO /tmp/pandoc.deb "https://github.com/jgm/pandoc/releases/download/3.9/pandoc-3.9-1-${ARCH}.deb" && \
|
||||||
|
dpkg -i /tmp/pandoc.deb && \
|
||||||
|
rm /tmp/pandoc.deb
|
||||||
|
|
||||||
# Update certificates and install SSL tools
|
# Update certificates and install SSL tools
|
||||||
RUN update-ca-certificates
|
RUN update-ca-certificates
|
||||||
RUN pip install --upgrade certifi pip-system-certs
|
RUN pip install --upgrade certifi pip-system-certs
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue