Skip to content

Commit 9d0db0c

Browse files
authored
Installing fonts only in one place (#703)
1 parent 6d242aa commit 9d0db0c

File tree

3 files changed

+34
-14
lines changed

3 files changed

+34
-14
lines changed

Base/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ RUN apt-get -qqy update \
2525
sudo \
2626
unzip \
2727
wget \
28-
ttf-wqy-microhei \
29-
ttf-wqy-zenhei \
3028
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/* \
3129
&& sed -i 's/securerandom\.source=file:\/dev\/random/securerandom\.source=file:\/dev\/urandom/' ./usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/java.security
3230

NodeBase/Dockerfile.txt

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,40 @@ RUN apt-get update -qqy \
99
xvfb \
1010
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/*
1111

12+
#================
13+
# Font libraries
14+
#================
15+
# libfontconfig ~1 MB
16+
# libfreetype6 ~1 MB
17+
# xfonts-cyrillic ~2 MB
18+
# xfonts-scalable ~2 MB
19+
# fonts-liberation ~3 MB
20+
# fonts-ipafont-gothic ~13 MB
21+
# fonts-wqy-zenhei ~17 MB
22+
# fonts-tlwg-loma-otf ~300 KB
23+
# ttf-ubuntu-font-family ~5 MB
24+
# Ubuntu Font Family, sans-serif typeface hinted for clarity
25+
# Removed packages:
26+
# xfonts-100dpi ~6 MB
27+
# xfonts-75dpi ~6 MB
28+
# Regarding fonts-liberation see:
29+
# https://github.com/SeleniumHQ/docker-selenium/issues/383#issuecomment-278367069
30+
# Layer size: small: 36.28 MB (with --no-install-recommends)
31+
# Layer size: small: 36.28 MB
32+
RUN apt -qqy update \
33+
&& apt -qqy --no-install-recommends install \
34+
libfontconfig \
35+
libfreetype6 \
36+
xfonts-cyrillic \
37+
xfonts-scalable \
38+
fonts-liberation \
39+
fonts-ipafont-gothic \
40+
fonts-wqy-zenhei \
41+
fonts-tlwg-loma-otf \
42+
ttf-ubuntu-font-family \
43+
&& rm -rf /var/lib/apt/lists/* \
44+
&& apt -qyy clean
45+
1246
#===================================================
1347
# Run the following commands as non-privileged user
1448
#===================================================

NodeDebug/Dockerfile.txt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,6 @@ RUN locale-gen en_US.UTF-8 \
2020
language-pack-en \
2121
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/*
2222

23-
#=======
24-
# Fonts
25-
#=======
26-
RUN apt-get update -qqy \
27-
&& apt-get -qqy --no-install-recommends install \
28-
fonts-ipafont-gothic \
29-
xfonts-100dpi \
30-
xfonts-75dpi \
31-
xfonts-cyrillic \
32-
xfonts-scalable \
33-
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/*
34-
3523
#=========
3624
# fluxbox
3725
# A fast, lightweight and responsive window manager

0 commit comments

Comments
 (0)