The sourcescan/cargo-near Docker image is designed for reproducible Rust builds tailored for the NEAR blockchain platform, utilizing cargo-near. This image facilitates the verification of Rust projects in a consistent and controlled environment, ensuring builds can be reproduced accurately.
- Image:
amd64/debian:stable-slim - URL: https://hub.docker.com/_/debian
- Dependencies:
curl,build-essential,ca-certificates- These are essential tools and libraries for building and compiling Rust projects.
RUST_VERSION=1.79.0- Arg that specifies the Rust version to be installed and used. Default is 1.79.0.
CARGO_NEAR_VERSION=0.6.3- Arg that specifies the cargo-near version to be installed and used. Default is 0.6.3.
RUSTFLAGS='-C link-arg=-s'- Configures rustc to pass the
-sargument to the linker, stripping symbols from the compiled binary to reduce the size of the final binary.
- Configures rustc to pass the
CARGO_HOME=/home/near/.cargo- Specifies the Cargo home directory.
RUSTUP_HOME=/home/near/.rustup- Specifies the Rustup home directory.
- User:
near- A non-root user created to enhance security and avoid running builds as the root user.
- User ID:
1000 - Group ID:
1000
- cargo-near
- Version: v0.6.3
- URL: https://github.com/near/cargo-near/releases/tag/cargo-near-v0.6.3
- Installed via a script.