File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 1+ # Use the official Solana verifiable build image as the base
2+ FROM solanafoundation/solana-verifiable-build:2.2.1
3+
4+ # Ensure Cargo's bin directory is in the PATH for the current user.
5+ # The solanafoundation image typically sets up rustup and cargo,
6+ # so the binaries are usually in /root/.cargo/bin for the root user.
7+ ENV PATH="/root/.cargo/bin:$PATH"
8+
9+ # Install the shank-cli tool.
10+ # It's important to pin the version for reproducible builds.
11+ # Please verify the exact version of `shank-cli` your project requires
12+ # by checking your `Cargo.toml` or `Cargo.lock` for `shank` dependencies,
13+ # or the `shank` project's documentation.
14+ # The version `0.4.3` is used here as an example, adjust if necessary.
15+ RUN cargo install shank-cli --version 0.4.3
16+
17+ # Set the working directory inside the container
18+ WORKDIR /usr/src/xorca
Original file line number Diff line number Diff line change @@ -2,7 +2,10 @@ name: xorca
22
33services :
44 build-solana-program :
5- image : solanafoundation/solana-verifiable-build:2.2.1
5+ # Changed from 'image' to 'build' to use a custom Dockerfile
6+ build :
7+ context : .
8+ dockerfile : Dockerfile.solana_builder # Points to the new Dockerfile
69 working_dir : /usr/src/xorca
710 command : >
811 sh -c "cargo build-sbf --verbose --force-tools-install
You can’t perform that action at this time.
0 commit comments