Skip to content

Commit fd4603e

Browse files
committed
fix: install asdf via binary download instead of go
1 parent ad2ca57 commit fd4603e

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# See here for image contents: https://hub.docker.com/layers/library/rust/1.81.0-slim/images/sha256-ba4ee661bb466ab49f6ceb8c6d9e9f9784bba7c6e45225187cd3c7fb1fbc12ce
2-
31
ARG RUST_VERSION=1.85.0
42
FROM ubuntu:24.04
53
ARG RUST_VERSION
@@ -44,7 +42,7 @@ RUN if [ "$TARGETPLATFORM" = "linux/arm64" ] ; then \
4442
rm -r hurl-4.1.0-aarch64-unknown-linux-gnu && \
4543
rm hurl.tar.gz && \
4644
rustup component add llvm-tools-preview --toolchain $(cat rust_toolchain_version)-aarch64-unknown-linux-gnu; \
47-
curl -L https://go.dev/dl/go1.24.2.linux-arm64.tar.gz -o go.tar.gz; \
45+
curl -L https://github.com/asdf-vm/asdf/releases/download/v0.16.7/asdf-v0.16.7-linux-arm64.tar.gz -o asdf.tar.gz; \
4846
elif [ "$TARGETPLATFORM" = "linux/amd64" ] ; then \
4947
curl -L https://github.com/Orange-OpenSource/hurl/releases/download/4.1.0/hurl-4.1.0-x86_64-unknown-linux-gnu.tar.gz -o hurl.tar.gz && \
5048
tar -xzf hurl.tar.gz && \
@@ -53,16 +51,13 @@ RUN if [ "$TARGETPLATFORM" = "linux/arm64" ] ; then \
5351
rm hurl.tar.gz && \
5452
rustup component add llvm-tools-preview --toolchain $(cat rust_toolchain_version)-x86_64-unknown-linux-gnu && \
5553
rustup target add x86_64-fortanix-unknown-sgx --toolchain $(cat nightly_rust_toolchain_version); \
56-
curl -L https://go.dev/dl/go1.24.2.linux-amd64.tar.gz -o go.tar.gz; \
54+
curl -L https://github.com/asdf-vm/asdf/releases/download/v0.16.7/asdf-v0.16.7-linux-amd64.tar.gz -o asdf.tar.gz; \
5755
fi
5856

5957
# For asdf to be installed for the current platform automatically.
60-
RUN tar -C /usr/local -xzf go.tar.gz
61-
ENV PATH="${PATH}:/usr/local/go/bin"
58+
RUN tar -C /usr/local/bin -xzf asdf.tar.gz
6259

63-
RUN go install github.com/asdf-vm/asdf/cmd/asdf@v0.16.0
6460
ENV PATH="/root/.asdf/shims:$PATH"
65-
ENV PATH="${PATH}:/root/go/bin"
6661

6762
RUN asdf plugin add scarb
6863
RUN asdf install scarb 2.9.4

0 commit comments

Comments
 (0)