Skip to content

Commit 6bb8647

Browse files
TomSchmidtDevclaude
andcommitted
fix: upgrade npm in runtime image to resolve bundled dep CVEs
Upgrades npm from 10.9.8 to latest (11.x) in the runtime stage, replacing vulnerable bundled packages (picomatch 4.0.3, brace-expansion 2.0.2, ip-address 10.1.0) detected by Dockhand vulnerability scan. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 5510848 commit 6bb8647

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ RUN npm prune --omit=dev
2121

2222
# ── Runtime ──────────────────────────────────────────────
2323
FROM node:22-alpine AS runtime
24-
RUN apk upgrade --no-cache
24+
RUN apk upgrade --no-cache && npm install -g npm@latest
2525
WORKDIR /app
2626

2727
COPY --from=builder /app/packages/api/dist ./packages/api/dist

0 commit comments

Comments
 (0)