🐳 Add fonts to alpine based docker images

This commit is contained in:
Jan Oberhauser 2020-11-18 21:24:51 +01:00
parent c4ed26a6cc
commit 19e2eeadcd
2 changed files with 14 additions and 0 deletions

View file

@ -36,6 +36,13 @@ WORKDIR /data
# Install all needed dependencies
RUN npm_config_user=root npm install -g full-icu
# Install fonts
RUN apk --no-cache add --virtual fonts msttcorefonts-installer fontconfig && \
update-ms-fonts && \
fc-cache -f && \
apk del fonts && \
find /usr/share/fonts/truetype/msttcorefonts/ -type l -exec unlink {} \;
ENV NODE_ICU_DATA /usr/local/lib/node_modules/full-icu
COPY --from=builder /data ./

View file

@ -16,6 +16,13 @@ RUN apk --update add --virtual build-dependencies python build-base ca-certifica
npm_config_user=root npm install -g full-icu n8n@${N8N_VERSION} && \
apk del build-dependencies
# Install fonts
RUN apk --no-cache add --virtual fonts msttcorefonts-installer fontconfig && \
update-ms-fonts && \
fc-cache -f && \
apk del fonts && \
find /usr/share/fonts/truetype/msttcorefonts/ -type l -exec unlink {} \;
ENV NODE_ICU_DATA /usr/local/lib/node_modules/full-icu
WORKDIR /data