rust Official Package
Updated about 2024-11-07 14:37:08 -08:00
Installation
docker pull pkg.ci/rust@sha256:9776ea67bd0398a9a4f5abb4df695ca0f0f985328f89d2557205dc3396b75148
sha256:9776ea67bd0398a9a4f5abb4df695ca0f0f985328f89d2557205dc3396b75148
Image Layers
ADD file:5758b97d8301c84a204a6e516241275d785a7cade40b2fb99f01fe122482e283 in / |
CMD ["/bin/sh"] |
LABEL org.opencontainers.image.source=https://github.com/rust-lang/docker-rust |
RUN /bin/sh -c apk add --no-cache ca-certificates gcc # buildkit |
ENV RUSTUP_HOME=/usr/local/rustup CARGO_HOME=/usr/local/cargo PATH=/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUST_VERSION=1.82.0 |
RUN /bin/sh -c set -eux; apkArch="$(apk --print-arch)"; case "$apkArch" in x86_64) rustArch='x86_64-unknown-linux-musl'; rustupSha256='1455d1df3825c5f24ba06d9dd1c7052908272a2cae9aa749ea49d67acbe22b47' ;; aarch64) rustArch='aarch64-unknown-linux-musl'; rustupSha256='7087ada906cd27a00c8e0323401a46804a03a742bd07811da6dead016617cc64' ;; *) echo >&2 "unsupported architecture: $apkArch"; exit 1 ;; esac; url="https://static.rust-lang.org/rustup/archive/1.27.1/${rustArch}/rustup-init"; wget "$url"; echo "${rustupSha256} *rustup-init" | sha256sum -c -; chmod +x rustup-init; ./rustup-init -y --no-modify-path --profile minimal --default-toolchain $RUST_VERSION --default-host ${rustArch}; rm rustup-init; chmod -R a+w $RUSTUP_HOME $CARGO_HOME; rustup --version; cargo --version; rustc --version; # buildkit |
Labels
Key | Value |
---|---|
org.opencontainers.image.source | https://github.com/rust-lang/docker-rust |
Details
Versions (20)
View all
latest
2024-11-07
1.82.0-alpine3.20
2024-11-07
alpine3.20
2024-11-07
1-alpine
2024-11-07
1.82-alpine
2024-11-07