Skip to content

Commit

Permalink
use fontconfig for mermaid CLI fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
JackuB committed Jan 27, 2024
1 parent 5895042 commit 9b24e5c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,12 @@ FROM base
# Install packages needed for deployment
# Note: this installs the necessary libs to make the browser work with Puppeteer.
# Install Google Chrome Stable and fonts
RUN apt-get update && apt-get install gnupg wget -y && \
RUN apt update && apt install gnupg wget -y && \
wget --quiet --output-document=- https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/google-archive.gpg && \
sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' && \
apt-get update && \
apt-get install google-chrome-stable -y --no-install-recommends \
font-noto-cjk font-noto-emoji \
terminus-font ttf-dejavu ttf-freefont ttf-font-awesome \
ttf-inconsolata ttf-linux-libertine && \
apt update && \
apt install google-chrome-stable fontconfig ttf-mscorefonts-installer -y --no-install-recommends && \
fc-cache -fv && \
rm -rf /var/lib/apt/lists/*

# Copy built application
Expand Down

0 comments on commit 9b24e5c

Please sign in to comment.