diff --git a/Dockerfile b/Dockerfile index 5d9c423..d724874 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,17 @@ FROM ubuntu:VERSION # Install packages RUN /bin/sh -c 'export DEBIAN_FRONTEND=noninteractive \ && apt-get update \ - && apt-get install -y bzip2 ca-certificates clang cmake curl earlyoom file g++ gcc git gnupg gzip jq lld make python3 python3-numpy tar xz-utils zip zstd xxd \ + && apt-get install -y lsb-release software-properties-common bzip2 ca-certificates cmake curl earlyoom file g++ gcc git gnupg gzip jq make python3 python3-numpy tar xz-utils zip zstd xxd wget \ + && wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - \ + && apt-add-repository "deb http://apt.llvm.org/`lsb_release -c | cut -f2`/ llvm-toolchain-`lsb_release -c | cut -f2`-18 main" \ + && apt-get update \ + && apt-get install -y clang-18 lld-18 \ && apt-get --purge autoremove -y \ && apt-get autoclean \ && rm -rf /var/lib/apt/lists/*' + +RUN /bin/sh -c 'update-alternatives --install /usr/bin/clang clang /usr/bin/clang-18 100 \ + && update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-18 100 \ + && update-alternatives --install /usr/bin/lld lld /usr/bin/lld-18 100' + +RUN which clang