Skip to content

Commit

Permalink
build: Use xml2rfc-fonts in docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
kesara committed Jun 25, 2024
1 parent 79ce4a7 commit b87991e
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions docker/base.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,12 @@ RUN apt-get update --fix-missing && \
apt-get clean -y

# Install required fonts
RUN mkdir -p ~/.fonts/opentype && \
wget -q https://noto-website-2.storage.googleapis.com/pkgs/Noto-unhinted.zip && \
unzip -q Noto-unhinted.zip -d ~/.fonts/opentype/ && \
rm Noto-unhinted.zip && \
wget -q https://fonts.google.com/download?family=Roboto%20Mono -O roboto-mono.zip && \
unzip -q roboto-mono.zip -d ~/.fonts/opentype/ && \
rm roboto-mono.zip && \
wget -q https://fonts.google.com/download?family=Noto%20Sans%20Math -O noto-sans-math.zip && \
unzip -q noto-sans-math.zip -d ~/.fonts/opentype/ && \
rm noto-sans-math.zip && \
ln -sf ~/.fonts/opentype/*.[to]tf /usr/share/fonts/truetype/ && \
RUN mkdir -p ~/.fonts/opentype /tmp/fonts && \
wget -q -O /tmp/fonts.tar.gz https://github.com/ietf-tools/xml2rfc-fonts/archive/refs/tags/3.21.0.tar.gz && \
tar zxf /tmp/fonts.tar.gz -C /tmp/fonts && \
mv /tmp/fonts/*/noto/* ~/.fonts/opentype/ && \
mv /tmp/fonts/*/roboto_mono/* ~/.fonts/opentype/ && \
rm -rf /tmp/fonts.tar.gz /tmp/fonts/ && \
fc-cache -f

# Copy everything required to build xml2rfc
Expand Down

0 comments on commit b87991e

Please sign in to comment.