#4116: Update Dockerfile to node 24
docker
size: XS
Cluster:
Docker Enhancements and Fixes
**Subject**: chore(docker): Upgrade Node.js base image to v24 (Active LTS)
**Description**: This PR upgrades the application runtime environment from Node.js 22 to Node.js 24. Transitioning to the latest Active LTS version ensures the following benefits:
**Security Posture**: Ensures the container includes the latest security patches and mitigations for CVEs present in older runtimes.
**Performance**: Leverages the updated V8 engine for better execution speed and improved memory management (garbage collection).
**Long-Term Support**: Aligns the infrastructure with the official Node.js support lifecycle, preventing technical debt accumulation.
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This PR updates the Docker base image from `node:22-bookworm` to `node:24-bookworm` to align the container runtime with Node.js 24 (Active LTS). The rest of the Dockerfile (Bun install, pnpm/corepack usage, build steps, and switching to the non-root `node` user) remains unchanged and continues to define the build/runtime environment for the app.
<h3>Confidence Score: 4/5</h3>
- This PR is safe to merge with low risk, as it is a straightforward base image bump.
- The diff only changes the Node base image tag; the only concrete issue found is a stale comment referencing the old image version. Runtime/CI compatibility with Node 24 should still be validated in the usual pipeline, but no code-path changes are introduced here.
- Dockerfile (minor comment mismatch)
<!-- greptile_other_comments_section -->
<sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#11818: fix(docker): resolve build hang by using in-place ownership and opt...
by dilly · 2026-02-08
80.1%
#11576: Update Dockerfile, change file ownership during copy to prevent long …
by fastali · 2026-02-08
78.8%
#5458: fix: set correct file ownership in Dockerfile (#5450)
by hakyonglee · 2026-01-31
78.4%
#8362: Add Homebrew-based Docker image
by bugparty · 2026-02-03
77.7%
#3240: Fix Docker build failures on Windows/WSL environments
by Attili-sys · 2026-01-28
77.1%
#4238: Fix/docker migration atomicity
by ricardotrevisan · 2026-01-29
75.7%
#13953: feat(docker): add .env template and improve Dockerfile
by n24q02m · 2026-02-11
75.6%
#22491: Use multi-stage docker build to reduce image size from 4.72GB -> 2....
by mm-zacharydavison · 2026-02-21
75.6%
#8376: Docker: inline chown to reduce image size and build time
by bugparty · 2026-02-03
75.6%
#9102: Remove UI build for Discord-onlyUpdate Dockerfile
by nbliss16 · 2026-02-04
75.0%