Fix codegraph require: set NODE_PATH to npm global root
Docker / build-and-push (push) Failing after 1m39s

This commit is contained in:
Steffen
2026-06-13 12:12:54 +00:00
parent 0eb1cdfdf0
commit d1c3bf77ba
+1 -1
View File
@@ -14,4 +14,4 @@ RUN wget -qO /tmp/bun.zip "https://github.com/oven-sh/bun/releases/download/bun-
# CodeGraph (runs via system node, not its bundled glibc binary) # CodeGraph (runs via system node, not its bundled glibc binary)
RUN npm install -g @colbymchenry/codegraph @colbymchenry/codegraph-linux-x64 && \ RUN npm install -g @colbymchenry/codegraph @colbymchenry/codegraph-linux-x64 && \
node -e "require('@colbymchenry/codegraph')" NODE_PATH=$(npm root -g) node -e "require('@colbymchenry/codegraph')"