Skip to content

Upgrade bundled Node.js from 20 to 22 (Node 20 LTS ends April 2026) #4876

@denysgaievskyi

Description

@denysgaievskyi

Summary

The Docker image installs nodejs from Debian 13.4 (trixie) apt repos, which provides Node.js 20.x. Node 20 LTS enters end-of-life in April 2026 — it will stop receiving security patches.

Node.js 22 is the current active LTS (supported through April 2027).

Current state

FROM debian:13.4
# ...
apt-get install ... nodejs npm ...

This pulls Node 20.x from Debian's repos.

Suggestion

Switch to NodeSource or an explicit install step for Node 22 LTS:

curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
apt-get install -y nodejs

Or use a multi-stage build with an official node:22 base.

Impact

Users running Hermes in production (e.g. Kubernetes) inherit the EOL Node runtime from the base image with no way to override it short of forking the Dockerfile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to havearea/dockerDocker image, Compose, packagingtype/featureNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions