Skip to content

fix(docker): Keep npm and its bundled dependencies out of the runtime image - #324

Merged
dervoeti merged 1 commit into
mainfrom
fix/exclude-npm-from-runtime-image
Sep 11, 2026
Merged

fix(docker): Keep npm and its bundled dependencies out of the runtime image#324
dervoeti merged 1 commit into
mainfrom
fix/exclude-npm-from-runtime-image

Conversation

@dervoeti

Copy link
Copy Markdown
Member

Image scans report CVEs for packages that are not part of the application and not in the SBOM. These come from npm itself, the base stage unpacks the full Node.js tarball into /usr/local and the final stage inherited from it.

I split the raw UBI image into its own base stage. The full Node.js distribution now lives in a node stage used only by builder, prod-deps and sbom. final builds on base and copies just the node binary. microdnf update -y was moved into final, since it no longer inherits it.

@dervoeti dervoeti self-assigned this Sep 11, 2026
@dervoeti dervoeti moved this to Development: Waiting for Review in Stackable Engineering Sep 11, 2026

@labrenbe labrenbe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@dervoeti
dervoeti merged commit ba60df5 into main Sep 11, 2026
11 checks passed
@dervoeti
dervoeti deleted the fix/exclude-npm-from-runtime-image branch September 11, 2026 15:39
@dervoeti dervoeti moved this from Development: Waiting for Review to Development: Done in Stackable Engineering Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Development: Done

Development

Successfully merging this pull request may close these issues.

2 participants