Skip to content

Commit d47ab7f

Browse files
Upgrade Node.js version in Dockerfile to 24 (#6)
1 parent f0301c1 commit d47ab7f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

openclaw/Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
# Slim (bookworm-slim): docker build --build-arg OPENCLAW_VARIANT=slim .
1515
ARG OPENCLAW_EXTENSIONS=""
1616
ARG OPENCLAW_VARIANT=default
17-
ARG OPENCLAW_NODE_BOOKWORM_IMAGE="node:22-bookworm@sha256:b501c082306a4f528bc4038cbf2fbb58095d583d0419a259b2114b5ac53d12e9"
18-
ARG OPENCLAW_NODE_BOOKWORM_DIGEST="sha256:b501c082306a4f528bc4038cbf2fbb58095d583d0419a259b2114b5ac53d12e9"
19-
ARG OPENCLAW_NODE_BOOKWORM_SLIM_IMAGE="node:22-bookworm-slim@sha256:9c2c405e3ff9b9afb2873232d24bb06367d649aa3e6259cbe314da59578e81e9"
20-
ARG OPENCLAW_NODE_BOOKWORM_SLIM_DIGEST="sha256:9c2c405e3ff9b9afb2873232d24bb06367d649aa3e6259cbe314da59578e81e9"
17+
ARG OPENCLAW_NODE_BOOKWORM_IMAGE="node:24-bookworm@sha256:3a09aa6354567619221ef6c45a5051b671f953f0a1924d1f819ffb236e520e6b"
18+
ARG OPENCLAW_NODE_BOOKWORM_DIGEST="sha256:3a09aa6354567619221ef6c45a5051b671f953f0a1924d1f819ffb236e520e6b"
19+
ARG OPENCLAW_NODE_BOOKWORM_SLIM_IMAGE="node:24-bookworm-slim@sha256:e8e2e91b1378f83c5b2dd15f0247f34110e2fe895f6ca7719dbb780f929368eb"
20+
ARG OPENCLAW_NODE_BOOKWORM_SLIM_DIGEST="sha256:e8e2e91b1378f83c5b2dd15f0247f34110e2fe895f6ca7719dbb780f929368eb"
2121

2222
# Base images are pinned to SHA256 digests for reproducible builds.
2323
# Trade-off: digests must be updated manually when upstream tags move.
24-
# To update, run: docker manifest inspect node:22-bookworm (or podman)
24+
# To update, run: docker buildx imagetools inspect node:24-bookworm (or podman)
2525
# and replace the digest below with the current multi-arch manifest list entry.
2626

2727
FROM ${OPENCLAW_NODE_BOOKWORM_IMAGE} AS ext-deps
@@ -91,12 +91,12 @@ RUN CI=true pnpm prune --prod && \
9191

9292
FROM ${OPENCLAW_NODE_BOOKWORM_IMAGE} AS base-default
9393
ARG OPENCLAW_NODE_BOOKWORM_DIGEST
94-
LABEL org.opencontainers.image.base.name="docker.io/library/node:22-bookworm" \
94+
LABEL org.opencontainers.image.base.name="docker.io/library/node:24-bookworm" \
9595
org.opencontainers.image.base.digest="${OPENCLAW_NODE_BOOKWORM_DIGEST}"
9696

9797
FROM ${OPENCLAW_NODE_BOOKWORM_SLIM_IMAGE} AS base-slim
9898
ARG OPENCLAW_NODE_BOOKWORM_SLIM_DIGEST
99-
LABEL org.opencontainers.image.base.name="docker.io/library/node:22-bookworm-slim" \
99+
LABEL org.opencontainers.image.base.name="docker.io/library/node:24-bookworm-slim" \
100100
org.opencontainers.image.base.digest="${OPENCLAW_NODE_BOOKWORM_SLIM_DIGEST}"
101101

102102
FROM base-${OPENCLAW_VARIANT}
@@ -213,7 +213,7 @@ RUN printf '%s\n' \
213213
ENV NODE_ENV=production
214214

215215
# Security hardening: Run as non-root user
216-
# The node:22-bookworm image includes a 'node' user (uid 1000)
216+
# The node:24-bookworm image includes a 'node' user (uid 1000)
217217
# This reduces the attack surface by preventing container escape via root privileges
218218
USER node
219219

0 commit comments

Comments
 (0)