rust (latest)
Published 2025-11-09 17:03:33 -07:00 by nic96
Installation
docker pull gitea.nic96.dev/runner-images/rust:latestsha256:6e74cb4211387e4fc49a2053a8f66e941175ffc14533e0f8c07a3c1e12753c91
About this package
The official Docker images for Rust
Image Layers
| # debian.sh --arch 'amd64' out/ 'bookworm' '@1762202650' |
| 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=nightly |
| RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates gcc libc6-dev wget ; arch="$(dpkg --print-architecture)"; case "$arch" in 'amd64') rustArch='x86_64-unknown-linux-gnu'; rustupSha256='20a06e644b0d9bd2fbdbfd52d42540bdde820ea7df86e92e533c073da0cdd43c'; ;; 'armhf') rustArch='armv7-unknown-linux-gnueabihf'; rustupSha256='3b8daab6cc3135f2cd4b12919559e6adaee73a2fbefb830fadf0405c20231d61'; ;; 'arm64') rustArch='aarch64-unknown-linux-gnu'; rustupSha256='e3853c5a252fca15252d07cb23a1bdd9377a8c6f3efa01531109281ae47f841c'; ;; 'i386') rustArch='i686-unknown-linux-gnu'; rustupSha256='a5db2c4b29d23e9b318b955dd0337d6b52e93933608469085c924e0d05b1df1f'; ;; 'ppc64el') rustArch='powerpc64le-unknown-linux-gnu'; rustupSha256='acd89c42b47c93bd4266163a7b05d3f26287d5148413c0d47b2e8a7aa67c9dc0'; ;; 's390x') rustArch='s390x-unknown-linux-gnu'; rustupSha256='726b7fd5d8805e73eab4a024a2889f8859d5a44e36041abac0a2436a52d42572'; ;; *) echo >&2 "unsupported architecture: $arch"; exit 1; ;; esac; url="https://static.rust-lang.org/rustup/archive/1.28.2/${rustArch}/rustup-init"; wget --progress=dot:giga "$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; apt-get remove -y --auto-remove wget ; rm -rf /var/lib/apt/lists/*; rustup --version; cargo --version; rustc --version; # buildkit |
| /bin/sh -c apt-get update && rustup component add clippy && apt-get install -y --no-install-recommends clang g++ pkg-config libasound2-dev libudev-dev wget jq curl file libfuse2 libwayland-dev libxkbcommon-dev && apt-get install -y --no-install-recommends git ca-certificates nodejs && git config --global init.defaultBranch master && git config --global advice.detachedHead false && wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-$(uname -m).AppImage -O /usr/local/bin/appimagetool && chmod +x /usr/local/bin/appimagetool && wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-$(uname -m).AppImage -O /usr/local/bin/linuxdeploy && chmod +x /usr/local/bin/linuxdeploy && sed -i 's|AI\x02|\x00\x00\x00|' /usr/local/bin/appimagetool && cargo install cargo-appimage && wget -O mold.tar.gz -c $(curl https://api.github.com/repos/rui314/mold/releases/latest | jq '.assets[] | select (.name | match("^mold-.*-x86_64-linux.tar.gz$"))' | jq -r '.browser_download_url') && tar --strip-components=1 -xf mold.tar.gz -C /usr/local && rm mold.tar.gz && apt-get remove --purge -y wget jq curl && apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /var/www/html |
| VOLUME [/cache] |
Labels
| Key | Value |
|---|---|
| org.opencontainers.image.created | 2025-11-09T00:19:04.098Z |
| org.opencontainers.image.description | The official Docker images for Rust |
| org.opencontainers.image.licenses | Apache-2.0 |
| org.opencontainers.image.revision | a100a9df426ee6cbc75be9dcaa4e8f97c570f3c2 |
| org.opencontainers.image.source | https://github.com/rust-lang/docker-rust |
| org.opencontainers.image.title | docker-rust |
| org.opencontainers.image.url | https://github.com/rust-lang/docker-rust |
| org.opencontainers.image.version | nightly-bookworm-slim |