diff --git a/build/dockerfiles/linux-libc-ubi9.Dockerfile b/build/dockerfiles/linux-libc-ubi9.Dockerfile index e47bd300eb9..a76bfe32e03 100644 --- a/build/dockerfiles/linux-libc-ubi9.Dockerfile +++ b/build/dockerfiles/linux-libc-ubi9.Dockerfile @@ -76,7 +76,9 @@ RUN NODE_ARCH=$(echo "console.log(process.arch)" | node) \ && echo "caching /checode-compilation/.build/node/v${NODE_VERSION}/linux-${NODE_ARCH}/node" \ && cp /usr/bin/node /checode-compilation/.build/node/v${NODE_VERSION}/linux-${NODE_ARCH}/node \ && NODE_OPTIONS="--max_old_space_size=8500" ./node_modules/.bin/gulp vscode-reh-web-linux-${NODE_ARCH}-min \ - && cp -r ../vscode-reh-web-linux-${NODE_ARCH} /checode + && cp -r ../vscode-reh-web-linux-${NODE_ARCH} /checode \ + # cache libbrotli from this image to provide it to a user's container + && mkdir -p /checode/ld_libs && find /usr/lib64 -name 'libbrotli*' 2>/dev/null | xargs -I {} cp -t /checode/ld_libs {} RUN chmod a+x /checode/out/server-main.js \ && chgrp -R 0 /checode && chmod -R g+rwX /checode diff --git a/build/scripts/entrypoint-volume.sh b/build/scripts/entrypoint-volume.sh index b6aa7e40a9b..c5c2d04b2c6 100755 --- a/build/scripts/entrypoint-volume.sh +++ b/build/scripts/entrypoint-volume.sh @@ -51,6 +51,9 @@ else echo "Using linux-libc ubi8-based assembly..." cd /checode/checode-linux-libc/ubi8 || exit elif [ "$openssl_major_version" = "3" ]; then + export LD_LIBRARY_PATH="/checode/checode-linux-libc/ubi9/ld_libs:$LD_LIBRARY_PATH" + echo "LD_LIBRARY_PATH is: $LD_LIBRARY_PATH" + echo "Using linux-libc ubi9-based assembly..." cd /checode/checode-linux-libc/ubi9 || exit else