-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
32 lines (27 loc) · 870 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM alpine:3.13
RUN apk add --no-cache aha
RUN apk add --no-cache \
xvfb \
# Additionnal dependencies for better rendering
ttf-freefont \
fontconfig \
dbus \
&& \
# Install wkhtmltopdf from `testing` repository
apk add qt5-qtbase-dev \
wkhtmltopdf \
--no-cache \
--repository http://dl-3.alpinelinux.org/alpine/edge/testing/ \
--allow-untrusted
RUN \
# Wrapper for xvfb
mv /usr/bin/wkhtmltoimage /usr/bin/wkhtmltoimage-origin && \
echo $'#!/usr/bin/env sh\n\
Xvfb :0 -screen 0 1024x768x24 -ac +extension GLX +render -noreset & \n\
DISPLAY=:0.0 wkhtmltoimage-origin $@ \n\
killall Xvfb\
' > /usr/bin/wkhtmltoimage && \
chmod +x /usr/bin/wkhtmltoimage
RUN chmod +x /usr/bin/wkhtmltoimage
RUN apk add --no-cache exiftool
WORKDIR /root