-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DOn't install fonts in renderer image.
Don't install fonts in the renderer image, but let Chromium use its default fonts for PDF exports. This reduces the renderer image size with about 44MB. Closes #10835.
- Loading branch information
Showing
2 changed files
with
5 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,19 +3,7 @@ FROM node:23.8.0-alpine3.21 | |
LABEL maintainer="Quality-time team <[email protected]>" | ||
LABEL description="Quality-time PDF render service" | ||
|
||
RUN apk add --no-cache \ | ||
msttcorefonts-installer=3.8.1-r1 \ | ||
fontconfig=2.15.0-r1 \ | ||
font-droid=20200215-r3 \ | ||
font-noto=24.7.1-r0 \ | ||
freetype=2.13.3-r0 \ | ||
ttf-dejavu=2.37-r5 \ | ||
ttf-freefont=20120503-r4 \ | ||
ttf-liberation=2.1.5-r2 \ | ||
chromium=132.0.6834.83-r0 && \ | ||
rm -rf /var/cache/apk/* /tmp/* && \ | ||
update-ms-fonts && \ | ||
fc-cache -f | ||
RUN apk add --no-cache chromium=132.0.6834.83-r0 | ||
|
||
WORKDIR /home/renderer | ||
COPY package*.json /home/renderer/ | ||
|
This file contains 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