⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.
TypeScript agenticagileai-agentsbug-reportingbug-trackerganttissue-trackerjirajira-alternativekanbanlinearlinear-alternativeopen-sourceproduct-managementproject-managementroadmapself-hostedsprint-planningteam-collaborationtrello-alternative
build(web): the release image no longer ships npm, npx, corepack or yarn (#559)
Pasqual Tronconeb73a118cd43b
diff --git a/apps/web/Dockerfile b/apps/web/Dockerfileindex d6524d67..e8d4e962 100644--- a/apps/web/Dockerfile+++ b/apps/web/Dockerfile@@ -41,6 +41,10 @@ RUN cd apps/web && bun run build# with "Failed to load external module isomorphic-dompurify-<hash>". Alpine keeps the# musl build of the traced native modules (sharp) valid.FROM node:24-alpine AS release+# The server runs on node alone. npm, npx, corepack and yarn ship with the base image,+# are never used, and bring their own vulnerable dependencies (npm's undici and tar).+RUN rm -rf /usr/local/lib/node_modules/npm /usr/local/lib/node_modules/corepack /opt/yarn-* \+ && rm -f /usr/local/bin/npm /usr/local/bin/npx /usr/local/bin/corepack /usr/local/bin/yarn /usr/local/bin/yarnpkgWORKDIR /appENV NODE_ENV=productionENV NEXT_TELEMETRY_DISABLED=1