Skip to content

Image: remove npm, npx, corepack and yarn from the final stage - #7

Merged
scottglz merged 1 commit into
mainfrom
drop-package-managers
Nov 22, 2026
Merged

scottglz merged 1 commit into
mainfrom
drop-package-managers

Conversation

@scottglz

Copy link
Copy Markdown
Owner

Removes npm, npx, corepack and yarn from the runtime image. Nothing uses them at runtime, and npm's bundled dependencies (undici, brace-expansion) were the image's only Trivy findings (6 high). Bumps to 0.3.1.

🤖 Generated with Claude Code

They come with the Node base image but never run in the container, and
npm's bundled dependencies were the image's only Trivy findings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@scottglz
scottglz merged commit 96e05c0 into main Nov 22, 2026
1 check 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.

1 participant