From be57b695ed533e952e8f80b6f0fcb4bfe1238af6 Mon Sep 17 00:00:00 2001 From: Travis Glenn Hansen Date: Thu, 30 Oct 2025 11:57:59 -0600 Subject: [PATCH] prebuilt re2 binaries for image Signed-off-by: Travis Glenn Hansen --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4d8bf62..5d70bfa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,7 +38,7 @@ ENV NODE_VERSION=v20.19.0 ENV NODE_ENV=production # install build deps -RUN apt-get update && apt-get install -y python3 make cmake gcc g++ +# RUN apt-get update && apt-get install -y python3 make cmake gcc g++ # install node RUN apt-get update && apt-get install -y wget xz-utils @@ -60,6 +60,10 @@ RUN useradd --create-home csi \ WORKDIR /home/csi/app USER csi +# prevent need to build re2 module +ENV RE2_DOWNLOAD_MIRROR="https://grpc-uds-binaries.s3-us-west-2.amazonaws.com/re2" +ENV RE2_DOWNLOAD_SKIP_PATH=1 + COPY --chown=csi:csi package*.json ./ RUN npm install --only=production --grpc_node_binary_host_mirror=https://grpc-uds-binaries.s3-us-west-2.amazonaws.com/debian-buster COPY --chown=csi:csi . .