Created
March 29, 2022 08:16
-
-
Save defkode/fce11ff88d5fd49997685cc16aae64cd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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