Skip to content

Commit d2b5f7f

Browse files
Install node-gyp before rebuilding pprof native binding
node_modules/.bin/node-gyp was not found because node-gyp was not explicitly installed in the pprof-source workdir. Add an explicit npm install step to make it available. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent bd560ee commit d2b5f7f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Dockerfile.Packages

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ RUN npm i @datadog/pprof@5.8.0 --ignore-scripts
3636
RUN git clone --branch v5.8.0 --depth 1 https://github.com/DataDog/pprof-nodejs.git /usr/src/pprof-source
3737
WORKDIR /usr/src/pprof-source
3838
RUN npm install --ignore-scripts
39+
RUN npm install --unsafe-perm node-gyp
3940
RUN npm_config_nodedir="/usr/src/node/node-install/usr/local" node_modules/.bin/node-gyp rebuild --jobs=max
4041
# Replace the linux prebuilt with our pointer-compression-compatible binary.
4142
# NODE_MODULE_VERSION and arch are read dynamically from the custom Node binary.

0 commit comments

Comments
 (0)