Skip to content

docs: Upgrade Node.js version in Dockerfile#771

Merged
zkochan merged 2 commits into
pnpm:mainfrom
miso-kyoungminkim:upgrade-node-version-in-dockerfile
May 6, 2026
Merged

docs: Upgrade Node.js version in Dockerfile#771
zkochan merged 2 commits into
pnpm:mainfrom
miso-kyoungminkim:upgrade-node-version-in-dockerfile

Conversation

@miso-kyoungminkim
Copy link
Copy Markdown
Contributor

@miso-kyoungminkim miso-kyoungminkim commented Apr 2, 2026

This PR updates the Dockerfile based on the official pnpm guide.
The base image is upgraded from Node.js 20 to Node.js 24 as Node.js 20 is nearing end of LTS.
It also adds an explicit Corepack installation to align with changes in newer Node.js versions.
These updates ensure pnpm works reliably in the container environment.

Summary by CodeRabbit

  • Documentation
    • Updated Docker examples to reference Node.js 24, ensuring compatibility with the latest Node.js version in provided configurations.

Updated Dockerfile base image from node:20-slim to node:24-slim and added corepack installation.
@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 2, 2026

@miso-kyoungminkim is attempting to deploy a commit to the pnpm Team on Vercel.

A member of the Team first needs to authorize it.

@MikeMcC399
Copy link
Copy Markdown
Contributor

Node.js 20 reached end-of-life on 2026-04-30, so it definitely makes sense to update the examples to Node.js 24.

@MikeMcC399
Copy link
Copy Markdown
Contributor

Corepack installation isn't necessary for Node.js 24 however, since this version still bundles Corepack.

Removed global installation of corepack in Dockerfile sections.
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 6, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 046a3156-996f-417a-8a9d-1b1317a72cfc

📥 Commits

Reviewing files that changed from the base of the PR and between 2022ba0 and a704293.

📒 Files selected for processing (1)
  • docs/docker.md

📝 Walkthrough

Walkthrough

Documentation examples for three Dockerfiles are updated to use Node.js 24-slim instead of 20-slim as the base image. No other configuration or logic changes are made.

Changes

Docker Base Image Documentation Updates

Layer / File(s) Summary
Documentation Examples
docs/docker.md
Three Dockerfile examples (lines 37, 107, 147) update the base image from node:20-slim to node:24-slim.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 A hop, skip, and bump from twenty to four-and-twenty,
Node's base image now fresher, with versions aplenty!
Three Dockerfiles gleam in their documented glory,
A simple, clean upgrade to the slim image story. ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change in the pull request: upgrading the Node.js version from 20 to 24 in Dockerfiles across the documentation.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Comment @coderabbitai help to get the list of available commands and usage tips.

@miso-kyoungminkim
Copy link
Copy Markdown
Contributor Author

Corepack installation isn't necessary for Node.js 24 however, since this version still bundles Corepack.

Oh, you’re right. My bad — fixed it. Thanks!

@zkochan zkochan merged commit 3f8a769 into pnpm:main May 6, 2026
1 of 2 checks passed
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.

3 participants