Node 8.11.0 with sass compiled And wkhtmltopdf library
1.5K
FROM blairguk/node-sass-alpine:8.11.0
#setting up wkhtmltopdf
VOLUME /tmp
RUN apk update
&&
apk upgrade
&&
apk add bash
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 \
&& \
# Wrapper for xvfb
mv /usr/bin/wkhtmltopdf /usr/bin/wkhtmltopdf-origin && \
echo $'#!/usr/bin/env sh\n\
Xvfb :0 -screen 0 1024x768x24 -ac +extension GLX +render -noreset & \n
DISPLAY=:0.0 wkhtmltopdf-origin $@ \n
killall Xvfb
' > /usr/bin/wkhtmltopdf &&
chmod +x /usr/bin/wkhtmltopdf
Content type
Image
Digest
Size
241.4 MB
Last updated
over 8 years ago
docker pull ysaakpr/node-sass-wkhtmltopdf