Added wkhtmltopdf installation to both Workspace and PHP-FPM

This commit is contained in:
Dan Wilson
2020-01-15 12:01:35 -05:00
parent cd84c464b3
commit 8ecd35d2e9
4 changed files with 44 additions and 0 deletions

View File

@ -846,6 +846,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:
###########################################################################