perf(container): remove npm cache from runtime image - #65
Merged
Conversation
Collaborator
Author
|
Clean-context review (delegated): APPROVE. Same-RUN-layer cache clean (real layer shrink, after all install verifications); runtime touches only ~/.npm/_cacache — installed trees and the mosoo-claude-code symlink untouched; no npx/--offline usage repo-wide; claims match staging measurements (pull/disk win, no boot-floor claim). Measured −24.2% uncompressed / −35.1% gzip. CI 3/3 green. Follow-up: superproject pin bump (currently d179ed2) to reach production. |
WH-2099
approved these changes
Jul 24, 2026
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.
What changed
Why
The cache is build-time residue that is never read at runtime. Keeping it inflates every cold image transfer without adding a runtime capability.
Before / after
Measured on
linux/amd64from Driver main0db020a, with a byte-identical Driver bundle:docker save | gzip -n -1: 1,068,600,282 B -> 693,094,196 B (-35.14%)Verification
vp fmt --checkvp run lintvp run tcvp run test(1,063 passed, 20 live-provider tests skipped)vp run buildand executable artifact checksThis PR makes an image-size claim only; it does not claim a causal TTFT improvement.