Skip to content

fix(docker): remove npm from runtime image - #2106

Merged
ffflorian merged 1 commit into
mainfrom
fix/remove-npm-runtime
Nov 15, 2026
Merged

ffflorian merged 1 commit into
mainfrom
fix/remove-npm-runtime

Conversation

@ffflorian

Copy link
Copy Markdown
Owner

The node:26-alpine base image ships npm 11.20.0, which bundles its own undici 6.28.0 with known high CVEs (Coolify flagged it in ostkoop-backend, which uses the same base). The app is started with node directly 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

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
@ffflorian
ffflorian merged commit 2ada649 into main Nov 15, 2026
8 checks passed
@ffflorian
ffflorian deleted the fix/remove-npm-runtime branch November 15, 2026 10:50
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))
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.

2 participants