Files
n8n/docker/images/n8n-base/Dockerfile
Declan Carroll b82de23cc4 chore: Bump Node.js from 24.13.1 to 24.14.1 (#27894)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 11:54:03 +00:00

36 lines
1.1 KiB
Docker

ARG NODE_VERSION=24.14.1
FROM dhi.io/node:${NODE_VERSION}-alpine3.22-dev
ARG NODE_VERSION
# Install all dependencies in a single layer to minimize image size
RUN apk add --no-cache busybox-binsh && \
# Install fonts
apk --no-cache add --virtual .build-deps-fonts msttcorefonts-installer fontconfig && \
update-ms-fonts && \
fc-cache -f && \
apk del .build-deps-fonts && \
find /usr/share/fonts/truetype/msttcorefonts/ -type l -exec unlink {} \; && \
# Install OS dependencies
apk update && \
apk upgrade --no-cache && \
apk add --no-cache \
git \
openssh \
openssl \
graphicsmagick=1.3.45-r0 `# pinned to avoid ghostscript-fonts (AGPL)` \
tini \
tzdata \
ca-certificates \
libc6-compat && \
# Cleanup
rm -rf /tmp/* /root/.npm /root/.cache/node /opt/yarn* && \
apk del apk-tools
WORKDIR /home/node
# DHI images use a non-standard global npm path, so we need to set NODE_PATH
# to allow externally installed npm packages to be found by require()
ENV NODE_PATH=/opt/nodejs/node-v${NODE_VERSION}/lib/node_modules
EXPOSE 5678/tcp