Created
September 4, 2015 18:11
-
-
Save sorentwo/e87bbafad92fd98af823 to your computer and use it in GitHub Desktop.
Docker run for wkhtmltopdf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# WKHTMLTOPDF ################################################################# | |
RUN apt-get update \ | |
&& apt-get -y install build-essential xorg libssl-dev libxrender-dev \ | |
&& mkdir -p /usr/src/wkhtmltopdf \ | |
&& curl -fSL -o wkhtmltopdf.tar.bz2 "http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.11.0_rc1-static-amd64.tar.bz2" \ | |
&& tar -xzjf wkhtmltopdf-0.11.0_rc1-static-amd64.tar.bz2 -C /usr/src/wkhtmltopdf \ | |
&& rm wkhtmltopdf.tar.bz2 | |
&& cd /usr/src/wkhtmltopdf \ | |
&& mv wkhtmltopdf-amd64 /usr/bin/wkhtmltopdf | |
&& chmod +x /usr/bin/wkhtmltopdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment