From fef95e9fca8602bad7237eda9fbf3076d0215de6 Mon Sep 17 00:00:00 2001 From: Luca Comellini Date: Fri, 28 Jun 2024 20:06:41 -0700 Subject: [PATCH] Bump base debian image to 12 --- Dockerfile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index afb0a265..7331e828 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,13 +3,16 @@ ARG BUILD_OS=debian FROM --platform=$BUILDPLATFORM tonistiigi/xx:1.4.0 AS xx ### Build base image for debian -FROM --platform=$BUILDPLATFORM debian:11 AS build-base-debian +FROM --platform=$BUILDPLATFORM debian:12 AS build-base-debian RUN apt-get update \ && apt-get install --no-install-recommends --no-install-suggests -y \ build-essential \ + binutils-for-host \ + binutils-aarch64-linux-gnu \ + binutils-arm-linux-gnueabihf \ ca-certificates \ - clang \ + clang-16 \ git \ golang \ libcurl4 \ @@ -22,6 +25,9 @@ RUN apt-get update \ protobuf-compiler \ wget +RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-16 100 \ + && update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-16 100 + COPY --from=xx / / ARG TARGETPLATFORM @@ -53,7 +59,7 @@ RUN xx-apk add --no-cache xx-cxx-essentials openssl-dev zlib-dev zlib libgcc cur ### Build image FROM build-base-${BUILD_OS} AS build-base -ENV CMAKE_VERSION=3.29.6 +ENV CMAKE_VERSION=3.30.0 RUN wget -q -O cmake-linux.sh "https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-$(arch).sh" \ && sh cmake-linux.sh -- --skip-license --prefix=/usr \ && rm cmake-linux.sh