Skip to content

Commit 0179778

Browse files
committed
fix: dockerfile
1 parent 311279f commit 0179778

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Dockerfile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,16 @@ RUN set -eux; apk add --no-cache \
1010
bash \
1111
binutils-gold \
1212
wget \
13-
rust \
14-
cargo
13+
curl
14+
15+
# Install Rust via rustup (for latest stable version with edition2024 support)
16+
ENV RUSTUP_HOME=/usr/local/rustup \
17+
CARGO_HOME=/usr/local/cargo \
18+
PATH=/usr/local/cargo/bin:$PATH
19+
20+
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable --profile minimal && \
21+
rustc --version && \
22+
cargo --version
1523

1624
WORKDIR /code
1725

0 commit comments

Comments
 (0)