mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-28 05:59:42 -08:00
f024d8be5a
* ci: Remove debian and rhel7 images * include libc6-compat in all alpine images * run all n8n docker containers as the user `node` instead of `root` * upgrade the default version of npm bundled in all containers * consolidate docker entrypoints
21 lines
629 B
Docker
21 lines
629 B
Docker
ARG NODE_VERSION=16
|
|
FROM node:${NODE_VERSION}-alpine
|
|
|
|
WORKDIR /home/node
|
|
COPY .npmrc /usr/local/etc/npmrc
|
|
|
|
RUN \
|
|
apk add --update git openssh graphicsmagick tini tzdata ca-certificates libc6-compat && \
|
|
npm install -g npm@9.5.1 full-icu && \
|
|
rm -rf /var/cache/apk/* /root/.npm /tmp/* && \
|
|
# Install fonts
|
|
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 {} \; && \
|
|
rm -rf /var/cache/apk/* /tmp/*
|
|
|
|
ENV NODE_ICU_DATA /usr/local/lib/node_modules/full-icu
|
|
EXPOSE 5678/tcp
|