Skip to content

Instantly share code, notes, and snippets.

@NTICompass
Created January 27, 2016 22:10
Show Gist options
  • Select an option

  • Save NTICompass/614e6e40d32655c64b74 to your computer and use it in GitHub Desktop.

Select an option

Save NTICompass/614e6e40d32655c64b74 to your computer and use it in GitHub Desktop.

Revisions

  1. NTICompass created this gist Jan 27, 2016.
    18 changes: 18 additions & 0 deletions Dockerfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    # wkhtmltopdf from: http://wkhtmltopdf.org/downloads.html
    FROM centos:7
    MAINTAINER Eric Siegel <[email protected]>

    # Upgrade packages & repo
    RUN yum -y update
    # wkhtmltopdf's dependencies
    RUN yum -y install zlib fontconfig freetype libX11 libXext libXrender

    # Download x64 static build of wkhtmltox (with patched QT)
    ADD http://download.gna.org/wkhtmltopdf/0.12/0.12.3/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz /tmp/wkhtmltox.tar.xz

    # Extract the archive
    RUN tar -C /opt -xvf /tmp/wkhtmltox.tar.xz

    # Run wkhtmltopdf and accept command line args
    WORKDIR /opt/wkhtmltox/bin
    ENTRYPOINT ["./wkhtmltopdf"]