| ARG RELEASE |
| ARG LAUNCHPAD_BUILD_ARCH |
| LABEL org.opencontainers.image.ref.name=ubuntu |
| LABEL org.opencontainers.image.version=24.04 |
| ADD file:3077ee44db3cc7d38740d60a05c81418dd3825a007db473658464f52689e867b in / |
| CMD ["/bin/bash"] |
| ENV TZ=Europe/Paris DEBIAN_FRONTEND=noninteractive PATH=/root/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| RUN /bin/sh -c # buildkit |
| RUN /bin/sh -c echo '#!/bin/bash\n$@' > /usr/bin/sudo && chmod +x /usr/bin/sudo # buildkit |
| RUN /bin/sh -c apt-get update && apt-get install -y unzip curl wget lsb-release software-properties-common gnupg python3 && rm -rf /var/lib/apt/lists/* # buildkit |
| ENV CCACHE_DIR=/ccache CCACHE_COMPRESS=1 CCACHE_MAXSIZE=10G CCACHE_COMPILERCHECK=content PATH=/root/.local/bin:/root/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| RUN /bin/sh -c apt-get update && apt-get install -y build-essential cppcheck ccache cmake ninja-build git pkg-config wget lsb-release software-properties-common pipx && rm -rf /var/lib/apt/lists/* && wget https://apt.llvm.org/llvm.sh -O /tmp/llvm.sh && chmod +x /tmp/llvm.sh && /tmp/llvm.sh 20 all && ln -sf /usr/bin/clang-20 /usr/bin/clang && ln -sf /usr/bin/clang++-20 /usr/bin/clang++ && ln -sf /usr/bin/llvm-profdata-20 /usr/bin/llvm-profdata && ln -sf /usr/bin/llvm-cov-20 /usr/bin/llvm-cov && ln -sf /usr/bin/clang-format-20 /usr/bin/clang-format && ln -sf /usr/bin/clang-tidy-20 /usr/bin/clang-tidy && ln -sf /usr/bin/run-clang-tidy-20 /usr/bin/run-clang-tidy && ln -sf /usr/bin/llvm-ar-20 /usr/bin/llvm-ar && ln -sf /usr/bin/llvm-nm-20 /usr/bin/llvm-nm && ln -sf /usr/bin/llvm-ranlib-20 /usr/bin/llvm-ranlib && ccache --zero-stats # buildkit |
| RUN /bin/sh -c VERSION=1.2.0; curl -sSL "https://github.com/facebook/infer/releases/download/v$VERSION/infer-linux-x86_64-v$VERSION.tar.xz" | tar -C /opt -xJ && ln -s "/opt/infer-linux-x86_64-v$VERSION/bin/infer" /usr/bin/infer # buildkit |
| RUN /bin/sh -c pipx ensurepath && pipx install conan && pipx install gcovr # buildkit |
| RUN /bin/sh -c git clone --branch v2.40.4 https://github.com/rui314/mold.git /tmp/mold && cd /tmp/mold && cmake . -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache -B build && cmake --build build -j$(nproc) && cmake --install build && rm -rf /tmp/mold # buildkit |
| RUN /bin/sh -c conan config install https://git.romainboullard.com/BigfootDev/ConanProfiles.git --args="--branch main" && conan remote add bigfootpackages https://conan.romainboullard.com/artifactory/api/conan/BigfootPackages && conan remote disable conancenter # buildkit |
| RUN /bin/sh -c ccache --show-stats # buildkit |