Skip to content

Commit

Permalink
build: Update Docker image to use WeasyPrint 55.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kesara committed Jun 28, 2022
1 parent 1bba6ab commit 5ffb1d6
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
FROM ubuntu:focal
# deadsnakes has Python3.6 for focal but not jammy
FROM ubuntu:latest
LABEL maintainer="Kesara Rathnayake <kesara@staff.ietf.org>"

ENV DEBIAN_FRONTEND noninteractive
Expand All @@ -10,20 +9,18 @@ RUN add-apt-repository ppa:deadsnakes/ppa
RUN apt-get update --fix-missing

# Install dependencies
RUN apt-get install -y \
libcairo2 \
libcairo2-dev \
RUN apt-get install -y --fix-missing \
libpango-1.0-0 \
libpangocairo-1.0-0 \
libssl-dev \
fontconfig \
libharfbuzz0b \
libpangoft2-1.0-0 \
pkg-config \
libxml2-utils \
groff \
wget \
unzip \
locales

# Set locale
RUN locale-gen en_US.UTF-8

Expand Down Expand Up @@ -70,11 +67,11 @@ COPY requirements.txt .

# build xml2rfc
RUN pip3 install -r requirements.txt \
"weasyprint==52.5" \
"pycairo<1.20" \
"weasyprint==55.0" \
decorator \
"dict2xml==1.6" \
"pypdf2<1.27.0"
dict2xml \
typing-extensions \
pdfplumber
RUN make install

# cleanup
Expand All @@ -83,7 +80,7 @@ RUN rm roboto-mono.zip
RUN apt-get remove --purge -y software-properties-common wget unzip
RUN apt-get autoclean
RUN apt-get clean
RUN pip3 uninstall -y decorator dict2xml pypdf2
RUN pip3 uninstall -y decorator dict2xml typing-extensions pdfplumber
RUN rm setup.py README.md Makefile configtest.py requirements.txt
RUN rm -r xml2rfc build dist

Expand Down

0 comments on commit 5ffb1d6

Please sign in to comment.