Skip to content

Commit 54624a9

Browse files
authored
Update Dockerfile (#307)
1 parent 005fe69 commit 54624a9

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

Dockerfile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ FROM compiler-common AS compiler-stylesheet
1313
RUN cd ~ \
1414
&& git clone --single-branch --branch v5.4.0 https://github.com/gravitystorm/openstreetmap-carto.git --depth 1 \
1515
&& cd openstreetmap-carto \
16+
&& sed -i 's/, "unifont Medium", "Unifont Upper Medium"//g' style/fonts.mss \
17+
&& sed -i 's/"Noto Sans Tibetan Regular",//g' style/fonts.mss \
18+
&& sed -i 's/"Noto Sans Tibetan Bold",//g' style/fonts.mss \
19+
&& sed -i 's/Noto Sans Syriac Eastern Regular/Noto Sans Syriac Regular/g' style/fonts.mss \
1620
&& rm -rf .git
1721

1822
###########################################################################################################
@@ -45,6 +49,7 @@ RUN apt-get update \
4549
apache2 \
4650
cron \
4751
dateutils \
52+
fonts-hanazono \
4853
fonts-noto-cjk \
4954
fonts-noto-hinted \
5055
fonts-noto-unhinted \
@@ -77,6 +82,12 @@ RUN apt-get update \
7782

7883
RUN adduser --disabled-password --gecos "" renderer
7984

85+
# Get Noto Emoji Regular font, despite it being deprecated by Google
86+
RUN wget https://github.com/googlefonts/noto-emoji/blob/9a5261d871451f9b5183c93483cbd68ed916b1e9/fonts/NotoEmoji-Regular.ttf?raw=true --content-disposition -P /usr/share/fonts/
87+
88+
# For some reason this one is missing in the default packages
89+
RUN wget https://github.com/stamen/terrain-classic/blob/master/fonts/unifont-Medium.ttf?raw=true --content-disposition -P /usr/share/fonts/
90+
8091
# Install python libraries
8192
RUN pip3 install \
8293
requests \
@@ -132,7 +143,8 @@ TILEDIR=/var/cache/renderd/tiles \n\
132143
XML=/home/renderer/src/openstreetmap-carto/mapnik.xml \n\
133144
HOST=localhost \n\
134145
TILESIZE=256 \n\
135-
MAXZOOM=20' >> /etc/renderd.conf
146+
MAXZOOM=20' >> /etc/renderd.conf \
147+
&& sed -i 's,/usr/share/fonts/truetype,/usr/share/fonts,g' /etc/renderd.conf
136148

137149
# Install helper script
138150
COPY --from=compiler-helper-script /home/renderer/src/regional /home/renderer/src/regional

0 commit comments

Comments
 (0)