rust (v3.0.0)
Installation
docker pull git.kemitix.net/kemitix/rust:v3.0.0
sha256:b8e188a1eb68af6c5c88aaac1d0a9ef1210bc636a0ee474ad8fbab98579ff01d
Image layers
# debian.sh --arch 'amd64' out/ 'bookworm' '@1734912000' |
LABEL org.opencontainers.image.source=https://github.com/rust-lang/docker-rust |
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; apt-get update; apt-get install -y --no-install-recommends ca-certificates gcc libc6-dev wget ; dpkgArch="$(dpkg --print-architecture)"; case "${dpkgArch##*-}" in amd64) rustArch='x86_64-unknown-linux-gnu'; rustupSha256='6aeece6993e902708983b209d04c0d1dbb14ebb405ddb87def578d41f920f56d' ;; armhf) rustArch='armv7-unknown-linux-gnueabihf'; rustupSha256='3c4114923305f1cd3b96ce3454e9e549ad4aa7c07c03aec73d1a785e98388bed' ;; arm64) rustArch='aarch64-unknown-linux-gnu'; rustupSha256='1cffbf51e63e634c746f741de50649bbbcbd9dbe1de363c9ecef64e278dba2b2' ;; i386) rustArch='i686-unknown-linux-gnu'; rustupSha256='0a6bed6e9f21192a51f83977716466895706059afb880500ff1d0e751ada5237' ;; ppc64el) rustArch='powerpc64le-unknown-linux-gnu'; rustupSha256='079430f58ad4da1d1f4f5f2f0bd321422373213246a93b3ddb53dad627f5aa38' ;; s390x) rustArch='s390x-unknown-linux-gnu'; rustupSha256='e7f89da453c8ce5771c28279d1a01d5e83541d420695c74ec81a7ec5d287c51c' ;; *) echo >&2 "unsupported architecture: ${dpkgArch}"; 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; apt-get remove -y --auto-remove wget ; rm -rf /var/lib/apt/lists/*; # buildkit |
LABEL org.opencontainers.image.source=https://git.kemitix.net/kemitix/rust |
RUN /bin/sh -c apt-get update && apt-get satisfy -y "nodejs (>=18.19.0), curl (>=7.88.1), pkg-config (>=1.8.1), libssl-dev (>=3.0.14), git (>=2.39.2), libdbus-1-dev (>= 1.14.10), libtag1-dev (>= 1.13), libtagc0-dev (>= 1.13), xorg-dev (>=7.7), libxcb-shape0-dev (>=0.15), libxcb-xfixes0-dev (>=0.15)" && rm -r /var/lib/apt/lists/* # 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 install 1.74.1 && rustup component add --toolchain 1.74.1 rustfmt clippy # buildkit |
RUN /bin/sh -c rustup update stable && rustup component add --toolchain stable rustfmt clippy # buildkit |
RUN /bin/sh -c rustup install nightly && rustup component add --toolchain nightly rustfmt clippy # 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 |
WORKDIR /app |
Labels
Key | Value |
---|---|
org.opencontainers.image.source | https://git.kemitix.net/kemitix/rust |
Details
2025-01-12 22:13:41 +00:00
Versions (10)
View all
Container
13
OCI / Docker
linux/amd64
1,007 MiB