diff --git a/.gitignore b/.gitignore index a01bb2f26..8ad33fd3c 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ aider/_version.py .venv/ .#* .gitattributes +tmp.benchmarks/ \ No newline at end of file diff --git a/benchmark/Dockerfile b/benchmark/Dockerfile index ff3cc7874..991b1793c 100644 --- a/benchmark/Dockerfile +++ b/benchmark/Dockerfile @@ -18,10 +18,18 @@ 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 -RUN curl -OL https://golang.org/dl/go1.21.5.linux-amd64.tar.gz && \ - tar -C /usr/local -xzf go1.21.5.linux-amd64.tar.gz && \ - rm go1.21.5.linux-amd64.tar.gz +# Install Go with architecture detection +RUN ARCH=$(uname -m) && \ + if [ "$ARCH" = "x86_64" ]; then \ + GOARCH="amd64"; \ + elif [ "$ARCH" = "aarch64" ]; then \ + GOARCH="arm64"; \ + else \ + false; \ + fi && \ + 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 ENV PATH="/usr/local/go/bin:${PATH}" # Install Rust