Repository navigation
fix(docker): remove npm from runtime image - #2106
Merged
Merged
Conversation
The node base image ships npm, which bundles its own dependencies such as undici 6.28.0 with known CVEs. The app is started with node directly and never uses npm at runtime, so remove it from the final image. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01P2AmTW9mCkZb9fwBj2GAtV
github-actions Bot
pushed a commit
that referenced
this pull request
Nov 15, 2026
## [1.14.40](v1.14.39...v1.14.40) (2026-11-15) ### Bug Fixes * **docker:** remove npm from runtime image ([#2106](#2106)) ([2ada649](2ada649))
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
node:26-alpinebase image ships npm 11.20.0, which bundles its ownundici 6.28.0with known high CVEs (Coolify flagged it in ostkoop-backend, which uses the same base). The app is started withnodedirectly and never runs the npm CLI (package metadata is fetched over HTTP), so this removes npm and npx from the runtime stage.Generated by Claude Code