mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
🐳 Add fonts to alpine based docker images
This commit is contained in:
parent
c4ed26a6cc
commit
19e2eeadcd
|
@ -36,6 +36,13 @@ WORKDIR /data
|
||||||
# Install all needed dependencies
|
# Install all needed dependencies
|
||||||
RUN npm_config_user=root npm install -g full-icu
|
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
|
ENV NODE_ICU_DATA /usr/local/lib/node_modules/full-icu
|
||||||
|
|
||||||
COPY --from=builder /data ./
|
COPY --from=builder /data ./
|
||||||
|
|
|
@ -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} && \
|
npm_config_user=root npm install -g full-icu n8n@${N8N_VERSION} && \
|
||||||
apk del build-dependencies
|
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
|
ENV NODE_ICU_DATA /usr/local/lib/node_modules/full-icu
|
||||||
|
|
||||||
WORKDIR /data
|
WORKDIR /data
|
||||||
|
|
Loading…
Reference in a new issue