Skip to content

Commit 1de71d1

Browse files
committed
fix
1 parent b3f58d7 commit 1de71d1

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

build/dockerfiles/coordinator-api.Dockerfile

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Build libzkp dependency
22
FROM scrolltech/cuda-go-rust-builder:cuda-11.7.1-go-1.22.12-rust-nightly-2025-02-14 as chef
33
WORKDIR app
4+
# Install cargo-chef to support workspace inheritance
5+
RUN cargo install cargo-chef --locked
46

57
FROM chef as planner
68
COPY ./crates/ ./crates/
@@ -11,13 +13,18 @@ RUN cargo chef prepare --recipe-path recipe.json
1113
FROM chef as zkp-builder
1214
COPY ./rust-toolchain ./
1315
COPY --from=planner /app/recipe.json recipe.json
14-
# run scripts to get openvm-gpu
15-
COPY ./build/dockerfiles/coordinator-api/plonky3-gpu /plonky3-gpu
16-
COPY ./build/dockerfiles/coordinator-api/openvm-stark-gpu /openvm-stark-gpu
17-
COPY ./build/dockerfiles/coordinator-api/openvm-gpu /openvm-gpu
16+
# Install git and setup GPU dependencies
17+
RUN apt-get update && apt-get install -y git
18+
# Clone GPU repositories using HTTPS instead of SSH
19+
RUN git clone https://github.com/scroll-tech/plonky3-gpu.git /plonky3-gpu && \
20+
cd /plonky3-gpu && git checkout 261b322
21+
RUN git clone https://github.com/scroll-tech/openvm-stark-gpu.git /openvm-stark-gpu && \
22+
cd /openvm-stark-gpu && git checkout 3082234
23+
RUN git clone https://github.com/scroll-tech/openvm-gpu.git /openvm-gpu && \
24+
cd /openvm-gpu && git checkout 8094b4f
1825
COPY ./build/dockerfiles/coordinator-api/gitconfig /root/.gitconfig
1926
COPY ./build/dockerfiles/coordinator-api/config.toml /root/.cargo/config.toml
20-
RUN cargo chef cook --release --recipe-path recipe.json
27+
RUN RUST_BACKTRACE=1 cargo chef cook --release --recipe-path recipe.json
2128

2229
COPY ./crates/ ./crates/
2330
COPY ./Cargo.* ./

0 commit comments

Comments
 (0)