mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
🐳 Add fonts to alpine based docker images
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user