mirror of
https://github.com/alrayyes/docker-alpine-hackmyresume-bash
synced 2023-11-13 18:16:42 +00:00
added wkhtmltopdf
This commit is contained in:
parent
6c1143c22d
commit
51d3412cc1
25
Dockerfile
25
Dockerfile
@ -4,5 +4,30 @@ 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
|
||||
|
@ -2,7 +2,9 @@
|
||||
|
||||
# Docker Alpine Hackmyresume Bash
|
||||
|
||||
Minimal container with [Hackmyresume](https://www.npmjs.com/package/hackmyresume) & Bash installed. Built to be used with [wercker](http://wercker.com/). Leverages [mhart/alpine-node](https://hub.docker.com/r/mhart/alpine-node/) base image.
|
||||
(Not so) Minimal container with [Hackmyresume](https://www.npmjs.com/package/hackmyresume), wkhtmltopdf & Bash installed. Built to be used with [wercker](http://wercker.com/). Leverages [mhart/alpine-node](https://hub.docker.com/r/mhart/alpine-node/) base image.
|
||||
|
||||
Hopefully will use official wkhtmltopdf package once it's in stable
|
||||
|
||||
## Usage
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user