diff --git a/docker/images/n8n/Dockerfile b/docker/images/n8n/Dockerfile index 810b224495..9abd32faed 100644 --- a/docker/images/n8n/Dockerfile +++ b/docker/images/n8n/Dockerfile @@ -14,14 +14,16 @@ USER root # it needs to build it correctly. RUN apk --update add --virtual build-dependencies python build-base ca-certificates && \ npm_config_user=root npm install -g full-icu n8n@${N8N_VERSION} && \ - apk del build-dependencies + apk del build-dependencies \ + && rm -rf /root /tmp/* /var/cache/apk/* && mkdir /root; # 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 {} \; + find /usr/share/fonts/truetype/msttcorefonts/ -type l -exec unlink {} \; \ + && rm -rf /root /tmp/* /var/cache/apk/* && mkdir /root ENV NODE_ICU_DATA /usr/local/lib/node_modules/full-icu