rust (latest)
Installation
docker pull git.kemitix.net/kemitix/rust:latest
sha256:a68ff19729ef484f6dfc567b2c505669b0eb2e2c78339e121b3903287c3ca087
Image layers
ADD alpine-minirootfs-3.21.2-x86_64.tar.gz / # buildkit |
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.84.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 |
LABEL org.opencontainers.image.source=https://git.kemitix.net/kemitix/rust |
RUN /bin/sh -c apk add --no-cache curl=8.11.1-r0 # buildkit |
RUN /bin/sh -c curl -L https://github.com/cargo-bins/cargo-binstall/releases/download/v1.10.19/cargo-binstall-x86_64-unknown-linux-musl.tgz -o cargo-binstall.tgz && tar -xzf cargo-binstall.tgz && rm cargo-binstall.tgz && mv cargo-binstall /usr/local/bin/ # buildkit |
RUN /bin/sh -c cargo binstall -y cargo-chef@0.1 cargo-hack@0.6 cargo-machete@0.7 cargo-mutants@25.0 release-plz@0.3 # buildkit |
RUN /bin/sh -c rustup update stable # buildkit |
RUN /bin/sh -c rustup component add --toolchain stable-x86_64-unknown-linux-musl rustfmt clippy # buildkit |
RUN /bin/sh -c rustup install nightly && rustup component add --toolchain nightly rustfmt clippy # buildkit |
RUN /bin/sh -c apk add --no-cache bash nodejs build-base pkgconfig libssl3 openssl-dev perl dbus-dev git # buildkit |
RUN /bin/sh -c git config --global user.email "action@git.kemitix.net" && git config --global user.name "ForgeJo Action. See: https://git.kemitix.net/kemitix/rust" # buildkit |
COPY scripts/ /usr/local/bin/ # buildkit |
WORKDIR /app |
Labels
Key | Value |
---|---|
org.opencontainers.image.source | https://git.kemitix.net/kemitix/rust |
Details
2025-01-21 01:33:26 +00:00
Versions (10)
View all
Container
516
OCI / Docker
linux/amd64
848 MiB