1
0
mirror of https://github.com/alrayyes/docker-alpine-hackmyresume-bash synced 2023-11-13 18:16:42 +00:00
docker-alpine-hackmyresume-.../Dockerfile
2016-09-29 13:26:02 +02:00

34 lines
973 B
Docker

FROM mhart/alpine-node:latest
MAINTAINER Ryan Kes <ryan@andthensome.nl>
# Install pygments (for syntax highlighting)
RUN apk update && apk add bash && rm -rf /var/cache/apk/*
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
# Install hackmyresume
RUN npm install -g hackmyresume