Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
fix: ensure npm is installed for Node.js base image (#5397)
Leonic08def3380136
diff --git a/prod.Dockerfile b/prod.Dockerfileindex 8fe2b7913..72b765dc2 100644--- a/prod.Dockerfile+++ b/prod.Dockerfile@@ -44,10 +44,10 @@ RUN go build# Shared Node.js base with optimized NPM installationFROM alpine:3.22.1 AS node_base-RUN apk add --no-cache nodejs curl tini && \- # Install NPM from source, as Alpine version is old and has dependency vulnerabilities+RUN apk add --no-cache nodejs npm curl tini bash && \+ # apk provides an outdated npm; immediately upgrade to a pinned version to avoid vulnerabilities# TODO: Find a better method which is resistant to supply chain attacks- sh -c "curl -qL https://www.npmjs.com/install.sh | env npm_install=11.5.2 sh" && \+ npm install -g [email protected] && \npm install -g [email protected] @import-meta-env/cli