From 19e2eeadcd721a54ff814e06216329d77b259b27 Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Wed, 18 Nov 2020 21:24:51 +0100 Subject: [PATCH] :whale: Add fonts to alpine based docker images --- docker/images/n8n-custom/Dockerfile | 7 +++++++ docker/images/n8n/Dockerfile | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/docker/images/n8n-custom/Dockerfile b/docker/images/n8n-custom/Dockerfile index d12f8f6b08..bd977d337c 100644 --- a/docker/images/n8n-custom/Dockerfile +++ b/docker/images/n8n-custom/Dockerfile @@ -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 ./ diff --git a/docker/images/n8n/Dockerfile b/docker/images/n8n/Dockerfile index 21c87c11cb..7da080a919 100644 --- a/docker/images/n8n/Dockerfile +++ b/docker/images/n8n/Dockerfile @@ -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