From d86208029010266aa5ec8cf85bc31358ce8c6898 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Wed, 15 Apr 2026 19:28:45 -0500 Subject: [PATCH] try to make node build faster --- staticnode/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/staticnode/Dockerfile b/staticnode/Dockerfile index 4ccc6f72..4b19bb29 100644 --- a/staticnode/Dockerfile +++ b/staticnode/Dockerfile @@ -8,7 +8,7 @@ ARG SHA256SUM RUN mkdir -p /build WORKDIR /build -RUN apk add --no-cache binutils-gold curl g++ gcc gnupg libgcc linux-headers make python3 libstdc++ patch +RUN apk add --no-cache binutils-gold curl g++ gcc gnupg libgcc linux-headers make ninja python3 libstdc++ patch RUN mkdir -p /out/bin RUN curl -O https://nodejs.org/dist/$VERSION/node-$VERSION.tar.gz @@ -28,8 +28,8 @@ RUN cd node-$VERSION && \ ppc64le) CPU=ppc64 ;; \ *) CPU="$ARCH" ;; \ esac && \ - ./configure --dest-cpu=$CPU --fully-static && \ - make -j$(nproc) + ./configure --dest-cpu=$CPU --fully-static --ninja --without-inspector --with-intl=none && \ + ninja -j$(nproc) -C out/Release node RUN cp /build/node-$VERSION/LICENSE /out/LICENSE && cp /build/node-$VERSION/out/Release/node /out/bin/node