Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

chore(docker): upgrade Node.js to 24.22.1 on Debian bookworm

KhaledR578ea19dd2613c
diff --git a/.nvmrc b/.nvmrc
index f9c0a758732..bd1f90ecec7 100644
--- a/.nvmrc
+++ b/.nvmrc
@@ -1 +1 @@
-v24.14.0
\ No newline at end of file
+v24.22.1
\ No newline at end of file
diff --git a/Dockerfile b/Dockerfile
index 21d92991b40..e29437f976b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM node:24.14.0-bullseye-slim AS base
+FROM node:24.22.1-bookworm-slim AS base
# C.UTF-8 ships with Debian, so no locale generation is needed.
# REDISMS_VERSION pins the Redis that redis-memory-server (AP_REDIS_TYPE=MEMORY)
@@ -10,16 +10,9 @@ ENV LANG=C.UTF-8 \
LC_ALL=C.UTF-8 \
REDISMS_VERSION=7.4.2
-# bullseye LTS ended 2026-08-31: deb.debian.org's index and pool now drift (404s on fetch), and
-# archive.debian.org has not picked bullseye up yet. Pin apt to a dated snapshot.debian.org
-# mirror (frozen, so Release files expire — hence Check-Valid-Until off) until the base image
-# moves to bookworm.
-RUN printf 'deb http://snapshot.debian.org/archive/debian/20260825T000000Z bullseye main\ndeb http://snapshot.debian.org/archive/debian-security/20260825T000000Z bullseye-security main\n' > /etc/apt/sources.list && \
- echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/99snapshot
-
# Install all system dependencies in a single layer. No apt cache mounts: docker-clean in the
# node base image wipes /var/cache/apt anyway, and a persisted /var/lib/apt/lists goes stale
-# against rotated bullseye-security packages, failing the build with hash/size fetch errors.
+# against rotated bookworm-security packages, failing the build with hash/size fetch errors.
# libcap2 is isolate's runtime lib (the isolate binaries ship prebuilt in api assets).
# tini runs as PID 1 and reaps orphaned sandbox children; node as PID 1 never waits on them and they pile up as zombies.
RUN apt-get update && \
diff --git a/Dockerfile.worker b/Dockerfile.worker
index 239a6cc7bf5..2605de7c30d 100644
--- a/Dockerfile.worker
+++ b/Dockerfile.worker
@@ -6,14 +6,7 @@
# lazy (dynamic import), so it never evaluates unless a chat job runs. Kept small on purpose.
### STAGE 1: Build (toolchain lives here only, never in the final image) ###
-FROM node:24.14.0-bullseye-slim AS build
-
-# bullseye LTS ended 2026-08-31: deb.debian.org's index and pool now drift (404s on fetch), and
-# archive.debian.org has not picked bullseye up yet. Pin apt to a dated snapshot.debian.org
-# mirror (frozen, so Release files expire — hence Check-Valid-Until off) until the base image
-# moves to bookworm.
-RUN printf 'deb http://snapshot.debian.org/archive/debian/20260825T000000Z bullseye main\ndeb http://snapshot.debian.org/archive/debian-security/20260825T000000Z bullseye-security main\n' > /etc/apt/sources.list && \
- echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/99snapshot
+FROM node:24.22.1-bookworm-slim AS build
RUN apt-get update && \
apt-get install -y --no-install-recommends python3 g++ build-essential curl ca-certificates unzip git
@@ -58,10 +51,7 @@ RUN npx turbo run build --filter=@activepieces/engine && \
RUN --mount=type=cache,target=/root/.bun/install/cache cd /usr/src && bun install [email protected]
### STAGE 2: Run (minimal) ###
-FROM node:24.14.0-bullseye-slim AS run
-
-RUN printf 'deb http://snapshot.debian.org/archive/debian/20260825T000000Z bullseye main\ndeb http://snapshot.debian.org/archive/debian-security/20260825T000000Z bullseye-security main\n' > /etc/apt/sources.list && \
- echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/99snapshot
+FROM node:24.22.1-bookworm-slim AS run
# ca-certificates: TLS for piece downloads. procps: `ps`, which tree-kill spawns to reap the engine.
# tini: PID 1 that reaps orphaned sandbox children; node as PID 1 never waits on them and they pile up as zombies.