Skip to content

Commit

Permalink
Merge pull request #9 from ScientaNL/wkhtmltopdf-update
Browse files Browse the repository at this point in the history
  • Loading branch information
kbarendrecht authored Mar 9, 2021
2 parents a8c06a3 + 4581993 commit 1acb997
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 22 deletions.
22 changes: 1 addition & 21 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,4 @@
FROM node:8-alpine

RUN apk add --update --no-cache \
xvfb \
libgcc \
libstdc++ \
libx11 \
glib \
libxrender \
libxext \
libintl \
libcrypto1.1 \
libssl1.1 \
ttf-opensans

# We use a pre-compiled version of wkhtmltopdf because there are no Alpine binaries available on https://wkhtmltopdf.org/downloads.html
# There is a version of wkhtml in alpine's git repository, but it is in the testing directory, so we don't want to reference that.
# This binary's build steps were configured by https://github.com/alloylab/Docker-Alpine-wkhtmltopdf including qt patches
COPY wkhtmltopdf /usr/bin/wkhtmltopdf
ENV PATH "$PATH:/usr/bin/wkhtmltopdf"
RUN chmod -R 777 /usr/bin/wkhtmltopdf
FROM surnet/alpine-node-wkhtmltopdf:8.11.3-0.12.5-full-font

COPY index.js .

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# html-pdf-export
HTTP Service to convert HTML to PDF. This image is based on [werkspot/html2pdf](https://github.com/Werkspot/html2pdf).
HTTP Service to convert HTML to PDF. Using image from https://github.com/Surnet/docker-wkhtmltopdf

We used alpine linux instead of ubuntu to drasticly decrease the container size.

Expand Down
Binary file removed wkhtmltopdf
Binary file not shown.

0 comments on commit 1acb997

Please sign in to comment.