mirror of
https://github.com/n8n-io/n8n.git
synced 2026-10-17 13:39:44 +02:00
build: Switch n8n image to Node 26 (#36291)
This commit is contained in:
parent
b7536714b0
commit
65e370e5aa
2
.github/workflows/docker-build-push.yml
vendored
2
.github/workflows/docker-build-push.yml
vendored
|
|
@ -8,7 +8,7 @@ run-name: "${{ github.event_name == 'workflow_dispatch' && format('Docker: Build
|
|||
|
||||
env:
|
||||
NODE_OPTIONS: '--max-old-space-size=7168'
|
||||
NODE_VERSION: '24.18.1'
|
||||
NODE_VERSION: '26.5.1'
|
||||
|
||||
on:
|
||||
schedule:
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
ARG NODE_VERSION=24.18.1
|
||||
ARG NODE_VERSION=26.5.1
|
||||
ARG N8N_VERSION=snapshot
|
||||
|
||||
# The runtime base has no compiler, so this stage supplies one.
|
||||
# The digest pins node:24.18.1-alpine3.24 for amd64 and arm64. Change the tag and the digest together.
|
||||
FROM node:24.18.1-alpine3.24@sha256:f70403e87646dc51b45295f4b8b70cdad0b63d2297c4c9899119b03f7af7a6b3 AS toolchain
|
||||
# The digest pins node:26.5.1-alpine3.24 for amd64 and arm64. Change the tag and the digest together.
|
||||
FROM node:26.5.1-alpine3.24@sha256:233761595746769ebfdb6090f44fc7cdf818ae0ce62d2b37e0367723b9823e36 AS toolchain
|
||||
RUN apk add --no-cache python3 make g++
|
||||
|
||||
# Build isolated-vm in a separate stage. The only cache input is the module source.
|
||||
|
|
@ -40,9 +40,9 @@ COPY --from=native-builder /build/isolated-vm/build/Release/isolated_vm.node \
|
|||
# node-gyp-build finds build/Release first. Delete the prebuilds to remove the glibc fallback.
|
||||
RUN rm -rf /usr/local/lib/node_modules/n8n/node_modules/isolated-vm/prebuilds
|
||||
|
||||
# The digest pins n8nio/base:24.18.1 for amd64 and arm64. A separate workflow builds that
|
||||
# The digest pins n8nio/base:26.5.1 for amd64 and arm64. A separate workflow builds that
|
||||
# image, so a new base reaches this image only when you change the digest here.
|
||||
FROM n8nio/base:24.18.1@sha256:37248501401c48fed77ef8af4f14a244888d07081a299f2d5d50d270839f27db
|
||||
FROM n8nio/base:26.5.1@sha256:1b0bca5c94bbd04ad2120b9e9892a8bc717a1d88efa76fefe452c59bdc611d25
|
||||
|
||||
ARG N8N_VERSION
|
||||
ARG N8N_RELEASE_TYPE=dev
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user