Skip to content

Instantly share code, notes, and snippets.

@ImUser773
Last active October 25, 2018 10:26
Show Gist options
  • Select an option

  • Save ImUser773/c62203057792a6f8bf2192ff70d63e75 to your computer and use it in GitHub Desktop.

Select an option

Save ImUser773/c62203057792a6f8bf2192ff70d63e75 to your computer and use it in GitHub Desktop.
How to install wkhtmltopdf on Debian GNU/Linux 9 (stretch)
# Install wkhtmltopdf on Debian GNU/Linux 9 (stretch)
RUN apt-get update
RUN apt-get install wget
RUN mkdir wkhtmltopdf
RUN cd wkhtmltopdf
RUN wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.stretch_amd64.deb
RUN apt-get install -y libfreetype6
RUN apt-get -y install libjpeg62-turbo
RUN apt-get -y install libpng16-16
RUN apt-get -y install libx11-6
RUN apt-get -y install libxcb1
RUN apt-get -y install libxext6
RUN apt-get -y install libxrender1
RUN apt-get -y install xfonts-75dpi
RUN apt-get -y install xfonts-base
RUN apt-get -y install fontconfig
RUN dpkg -i wkhtmltox_0.12.5-1.stretch_amd64.deb
RUN wkhtmltopdf --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment