rust Official Package

Updated about 2024-11-07 14:37:08 -08:00

Installation

docker pull pkg.ci/rust@sha256:453fae96cfbef23a6e86a524e3a9a5935c69cc67a0bd64990dc2c000cea4da81
sha256:453fae96cfbef23a6e86a524e3a9a5935c69cc67a0bd64990dc2c000cea4da81

Image Layers

ADD file:ee5bb8409915b11413f44cce4c22fed658aba4fb078a448e08dd4ac9a23581f2 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
Container
2024-11-07 14:37:08 -08:00
0
OCI / Docker
linux/arm64
285 MiB
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