Merge pull request #2469 from DGeoWils/master

Added wkhtmltopdf installation to both Workspace and PHP-FPM
This commit is contained in:
Shao Yu-Lung (Allen) authored and GitHub committed 2020-02-18 08:55:57 +08:00
commit 9de9e8ed04
5 files changed
+58

No files matched your search

+20
View File
@@ -1239,6 +1239,26 @@ RUN if [ ${INSTALL_FFMPEG} = true ]; then \
apt-get -y install ffmpeg \
;fi
#####################################
# wkhtmltopdf:
#####################################
USER root
ARG INSTALL_WKHTMLTOPDF=false
RUN if [ ${INSTALL_WKHTMLTOPDF} = true ]; then \
apt-get install -y \
libxrender1 \
libfontconfig1 \
libx11-dev \
libjpeg62 \
libxtst6 \
wget \
&& wget https://github.com/h4cc/wkhtmltopdf-amd64/blob/master/bin/wkhtmltopdf-amd64?raw=true -O /usr/local/bin/wkhtmltopdf \
&& chmod +x /usr/local/bin/wkhtmltopdf \
;fi
###########################################################################
# Mailparse extension:
###########################################################################