diff --git a/benchmark/Dockerfile b/benchmark/Dockerfile index b7e1f5d7759..991b1793ce5 100644 --- a/benchmark/Dockerfile +++ b/benchmark/Dockerfile @@ -18,10 +18,8 @@ RUN apt-get update && apt-get install -y \ # Make python3.11 the default python3 RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1 -# Install Go with improved architecture detection -RUN set -x && \ - ARCH=$(uname -m) && \ - echo "Detected architecture: $ARCH" && \ +# Install Go with architecture detection +RUN ARCH=$(uname -m) && \ if [ "$ARCH" = "x86_64" ]; then \ GOARCH="amd64"; \ elif [ "$ARCH" = "aarch64" ]; then \ @@ -29,12 +27,9 @@ RUN set -x && \ else \ false; \ fi && \ - echo "Selected GOARCH: $GOARCH" && \ - echo "Downloading: https://golang.org/dl/go1.21.5.linux-$GOARCH.tar.gz" && \ curl -L "https://golang.org/dl/go1.21.5.linux-$GOARCH.tar.gz" -o go.tar.gz && \ tar -C /usr/local -xzf go.tar.gz && \ - rm go.tar.gz && \ - /usr/local/go/bin/go version + rm go.tar.gz ENV PATH="/usr/local/go/bin:${PATH}" # Install Rust