mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 13:14:07 -08:00
b701dcb8ef
We need to drop node 16 support, [as support for it is ends much earlier now, due to support for openssl 1.1.1 ending](https://nodejs.org/en/blog/announcements/nodejs16-eol). `0.236.x` releases will continue to support Node.js 16 for another two months, and `1.x.x` releases will only support Node.js 18 for now.
21 lines
629 B
Docker
21 lines
629 B
Docker
ARG NODE_VERSION=18
|
|
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
|