Skip to content

Instantly share code, notes, and snippets.

@defkode
Created March 29, 2022 08:16
Show Gist options
  • Save defkode/fce11ff88d5fd49997685cc16aae64cd to your computer and use it in GitHub Desktop.
Save defkode/fce11ff88d5fd49997685cc16aae64cd to your computer and use it in GitHub Desktop.
FROM alpine:latest
RUN apk add \
py3-pip \
py3-pillow \
py3-cffi \
py3-brotli \
gcc \
musl-dev \
python3-dev \
pango \
msttcorefonts-installer \
fontconfig
RUN apk --update --upgrade --no-cache add fontconfig ttf-freefont font-noto terminus-font \
&& fc-cache -f \
&& fc-list | sort
RUN pip3 install --upgrade pip
RUN pip3 install WeasyPrint==54.2
RUN mkdir /tmp/workdir
WORKDIR /tmp/workdir
ENTRYPOINT ["/usr/bin/weasyprint"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment