Skip to content

Commit 1acb997

Browse files
authored
Merge pull request #9 from ScientaNL/wkhtmltopdf-update
Switch to image from https://github.com/Surnet/docker-wkhtmltopdf
2 parents a8c06a3 + 4581993 commit 1acb997

File tree

3 files changed

+2
-22
lines changed

3 files changed

+2
-22
lines changed

Dockerfile

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,4 @@
1-
FROM node:8-alpine
2-
3-
RUN apk add --update --no-cache \
4-
xvfb \
5-
libgcc \
6-
libstdc++ \
7-
libx11 \
8-
glib \
9-
libxrender \
10-
libxext \
11-
libintl \
12-
libcrypto1.1 \
13-
libssl1.1 \
14-
ttf-opensans
15-
16-
# We use a pre-compiled version of wkhtmltopdf because there are no Alpine binaries available on https://wkhtmltopdf.org/downloads.html
17-
# 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.
18-
# This binary's build steps were configured by https://github.com/alloylab/Docker-Alpine-wkhtmltopdf including qt patches
19-
COPY wkhtmltopdf /usr/bin/wkhtmltopdf
20-
ENV PATH "$PATH:/usr/bin/wkhtmltopdf"
21-
RUN chmod -R 777 /usr/bin/wkhtmltopdf
1+
FROM surnet/alpine-node-wkhtmltopdf:8.11.3-0.12.5-full-font
222

233
COPY index.js .
244

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# html-pdf-export
2-
HTTP Service to convert HTML to PDF. This image is based on [werkspot/html2pdf](https://github.com/Werkspot/html2pdf).
2+
HTTP Service to convert HTML to PDF. Using image from https://github.com/Surnet/docker-wkhtmltopdf
33

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

wkhtmltopdf

-45 MB
Binary file not shown.

0 commit comments

Comments
 (0)