Skip to content

Commit 4898f56

Browse files
committed
update
1 parent 2cd766b commit 4898f56

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

Dockerfile.solana_builder

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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

docker-compose.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ name: xorca
22

33
services:
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

0 commit comments

Comments
 (0)