Skip to content

SourceScan/cargo-near-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sourcescan/cargo-near Docker Image

Overview

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.

Dockerfile Details

Base Image

System Dependencies

  • Dependencies: curl, build-essential, ca-certificates
    • These are essential tools and libraries for building and compiling Rust projects.

Environment Variables

  • 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 -s argument to the linker, stripping symbols from the compiled binary to reduce the size of the final binary.
  • CARGO_HOME=/home/near/.cargo
    • Specifies the Cargo home directory.
  • RUSTUP_HOME=/home/near/.rustup
    • Specifies the Rustup home directory.

User Configuration

  • User: near
    • A non-root user created to enhance security and avoid running builds as the root user.
  • User ID: 1000
  • Group ID: 1000

Additional Tools

About

cargo-near reproducible docker image

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published