Skip to content

Instantly share code, notes, and snippets.

@defkode
Created March 29, 2022 08:15
Show Gist options
  • Save defkode/888836faa1f56a1d175c5958134cf66b to your computer and use it in GitHub Desktop.
Save defkode/888836faa1f56a1d175c5958134cf66b to your computer and use it in GitHub Desktop.
FROM debian:buster
RUN apt-get update -qq && apt-get install -qqy \
build-essential \
python3-pip \
python3-cffi \
libpango-1.0-0 \
libpangocairo-1.0-0 \
libgdk-pixbuf2.0-0
RUN pip3 install --upgrade pip
RUN pip3 install WeasyPrint==51 tinycss2==1.0.2
RUN mkdir /tmp/workdir
WORKDIR /tmp/workdir
ENTRYPOINT ["/usr/local/bin/weasyprint"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment