From a9f57a83c590e62cb0ba08d3afe96495a5f00243 Mon Sep 17 00:00:00 2001 From: FalconRay Date: Wed, 23 Mar 2022 14:11:40 +0800 Subject: [PATCH] The default package wkhtmltopdf provided by debian is built against an unpatched version of QT, so that it does not support export index to PDF with default --outline option. Use the wkhtmltopdf official release package on github to fix it. --- Dockerfile | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3c3662a4..635c3674 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,17 +22,20 @@ RUN set -x; \ libxml2-dev \ fontconfig \ fonts-freefont-ttf \ - wkhtmltopdf \ + wget \ tar \ curl \ libzip-dev \ unzip \ - \ - && docker-php-ext-install -j$(nproc) dom pdo pdo_mysql zip tidy \ - && docker-php-ext-configure ldap \ - && docker-php-ext-install -j$(nproc) ldap \ - && docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ \ - && docker-php-ext-install -j$(nproc) gd + && wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.buster_amd64.deb \ + && chmod a+x ./wkhtmltox_0.12.6-1.buster_amd64.deb \ + && apt-get install -y ./wkhtmltox_0.12.6-1.buster_amd64.deb \ + && rm ./wkhtmltox_0.12.6-1.buster_amd64.deb \ + && docker-php-ext-install -j$(nproc) dom pdo pdo_mysql zip tidy \ + && docker-php-ext-configure ldap \ + && docker-php-ext-install -j$(nproc) ldap \ + && docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ \ + && docker-php-ext-install -j$(nproc) gd RUN a2enmod rewrite remoteip; \ { \