Skip to content

Commit

Permalink
refactor: Remove unnecessary echo statements from Go installation sec…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
paulmaunders committed Dec 24, 2024
1 parent 5240c47 commit cf2b765
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions benchmark/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +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 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 \
GOARCH="arm64"; \
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
Expand Down

0 comments on commit cf2b765

Please sign in to comment.