File tree 2 files changed +13
-4
lines changed 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -15,3 +15,4 @@ aider/_version.py
15
15
.venv /
16
16
. # *
17
17
.gitattributes
18
+ tmp.benchmarks /
Original file line number Diff line number Diff line change @@ -18,10 +18,18 @@ RUN apt-get update && apt-get install -y \
18
18
# Make python3.11 the default python3
19
19
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1
20
20
21
- # Install Go
22
- RUN curl -OL https://golang.org/dl/go1.21.5.linux-amd64.tar.gz && \
23
- tar -C /usr/local -xzf go1.21.5.linux-amd64.tar.gz && \
24
- rm go1.21.5.linux-amd64.tar.gz
21
+ # Install Go with architecture detection
22
+ RUN ARCH=$(uname -m) && \
23
+ if [ "$ARCH" = "x86_64" ]; then \
24
+ GOARCH="amd64" ; \
25
+ elif [ "$ARCH" = "aarch64" ]; then \
26
+ GOARCH="arm64" ; \
27
+ else \
28
+ false; \
29
+ fi && \
30
+ curl -L "https://golang.org/dl/go1.21.5.linux-$GOARCH.tar.gz" -o go.tar.gz && \
31
+ tar -C /usr/local -xzf go.tar.gz && \
32
+ rm go.tar.gz
25
33
ENV PATH="/usr/local/go/bin:${PATH}"
26
34
27
35
# Install Rust
You can’t perform that action at this time.
0 commit comments