Skip to content

Upgrade Dockerfile and CI from Node 18 to Node 24 (LTS) - #55

Open
salmanmkc wants to merge 1 commit into
cnoe-io:mainfrom
salmanmkc:upgrade-node-22
Open

Upgrade Dockerfile and CI from Node 18 to Node 24 (LTS)#55
salmanmkc wants to merge 1 commit into
cnoe-io:mainfrom
salmanmkc:upgrade-node-22

Conversation

@salmanmkc

@salmanmkc salmanmkc commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

Summary

Upgrade the Docker base image and PR CI workflow from Node 18 to Node 24 (Active LTS) to fix broken builds.

Problem

The build-and-push-image job and PR CI both fail during yarn install because a transitive dependency (undici@7.25.0) requires Node >=20.18.1, but Node 18.20.8 is used:

error undici@7.25.0: The engine "node" is incompatible with this module. Expected version ">=20.18.1". Got "18.20.8"

Fix

  • Dockerfile: Update all three FROM node:18-bookworm-slim stages to node:24-bookworm-slim
  • pr.yaml: Update setup-node version from 18 to 24

Why Node 24?

  • Node 18: EOL as of April 30, 2025
  • Node 20: Maintenance LTS (EOL April 2026)
  • Node 22: Maintenance LTS (EOL April 2027)
  • Node 24: Active LTS since October 2025 (EOL April 2028) ✅

Node 24 is the sole Active LTS release and aligns with the GitHub Actions runner upgrade to Node 24 in #52.

Related

@salmanmkc salmanmkc changed the title Upgrade Dockerfile from Node 18 to Node 22 Upgrade Dockerfile from Node 18 to Node 24 (LTS) Apr 30, 2026
@salmanmkc salmanmkc changed the title Upgrade Dockerfile from Node 18 to Node 24 (LTS) Upgrade Dockerfile and CI from Node 18 to Node 24 (LTS) Apr 30, 2026
Node 18 reached end-of-life on April 30, 2025. A transitive dependency
(undici@7.25.0) requires Node >=20.18.1, causing both the Docker build
and PR CI to fail during yarn install.

Upgrade to Node 24 (Active LTS since October 2025, EOL April 2028):
- Dockerfile: all three FROM stages updated to node:24-bookworm-slim
- pr.yaml: setup-node version updated to 24
- package.json: engines field updated to include Node 22 and 24

Aligns with the Node 24 GitHub Actions runner upgrade in cnoe-io#52.

Signed-off-by: Salman Chishti - SalmanMKC <13schishti@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant