From cf292ca7c57c96d4e0beb17521707f7f2d91ce41 Mon Sep 17 00:00:00 2001 From: kert Date: Thu, 29 Oct 2026 19:30:33 -0400 Subject: [PATCH] =?UTF-8?q?chore(deps):=20Node=2022=20=E2=86=92=2026=20for?= =?UTF-8?q?=20the=20docs=20and=20notebooks=20builds?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Node 26 is the current LTS. It ships without corepack (dropped from Node 25 on), so both build stages died at `corepack enable` ("not found"). Each now installs a pinned corepack from npm first (COREPACK_VERSION=0.36.0, renovate-annotated so it gets bumped too). Verified: both images build on node 26; the notebooks image passes nb_fe_smoke --image (marimo home and editor, no console errors); the docs site renders /, /api/ and search with no page errors. --- infra/images/docs.Dockerfile | 7 +++++-- infra/images/notebooks.Dockerfile | 6 +++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/infra/images/docs.Dockerfile b/infra/images/docs.Dockerfile index a07e7f1..05ec256 100644 --- a/infra/images/docs.Dockerfile +++ b/infra/images/docs.Dockerfile @@ -19,12 +19,15 @@ RUN uv run --with griffe python docs/scripts/extract_docs.py # Stage 2: Build Docusaurus static site -FROM node:22-slim AS build +FROM node:26-slim AS build # No `corepack prepare `: corepack runs the pnpm that # docs/package.json's packageManager names, so Renovate's bump of that # field is the whole upgrade (a second pin here went stale at pnpm 12). -RUN corepack enable +# Node 25+ no longer bundles corepack, so install a pinned one from npm. +# renovate: datasource=npm depName=corepack +ARG COREPACK_VERSION=0.36.0 +RUN npm install -g corepack@${COREPACK_VERSION} && corepack enable WORKDIR /docs diff --git a/infra/images/notebooks.Dockerfile b/infra/images/notebooks.Dockerfile index 73be3f8..979431a 100644 --- a/infra/images/notebooks.Dockerfile +++ b/infra/images/notebooks.Dockerfile @@ -22,13 +22,17 @@ ARG MARIMO_VERSION=0.25.2 # ---- stage 1: frontend ------------------------------------------------------ -FROM node:22-bookworm-slim AS fe +FROM node:26-bookworm-slim AS fe ARG MARIMO_VERSION WORKDIR /src +# Node 25+ no longer bundles corepack, so install a pinned one from npm. +# renovate: datasource=npm depName=corepack +ARG COREPACK_VERSION=0.36.0 RUN apt-get update \ && apt-get install -y --no-install-recommends git ca-certificates python3 jq \ && rm -rf /var/lib/apt/lists/* \ + && npm install -g corepack@${COREPACK_VERSION} \ && corepack enable # No `corepack prepare pnpm@latest`: the corepack shim resolves the exact # pnpm version from marimo's package.json `packageManager` field at first