From 0f3d0b3e8044c6a0553f4b55f2ef275fcc962a1c Mon Sep 17 00:00:00 2001 From: Avi Cohen Date: Mon, 8 Jun 2026 13:48:26 +0300 Subject: [PATCH] starknet_transaction_prover,blockifier_reexecution: drop sierra-compile sidecar from docker images Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/blockifier_reexecution/replay/Dockerfile | 14 +++++++------- crates/starknet_transaction_prover/Dockerfile | 11 ----------- 2 files changed, 7 insertions(+), 18 deletions(-) diff --git a/crates/blockifier_reexecution/replay/Dockerfile b/crates/blockifier_reexecution/replay/Dockerfile index 4e9b858c66c..1f510baf8f8 100644 --- a/crates/blockifier_reexecution/replay/Dockerfile +++ b/crates/blockifier_reexecution/replay/Dockerfile @@ -82,11 +82,11 @@ RUN cargo chef cook --release -p blockifier_reexecution --features cairo_native COPY . . RUN cargo build --release -p blockifier_reexecution --features cairo_native -# Install compiler binaries used for Sierra compilation at runtime. -# Binaries land under $CARGO_TOOLS_ROOT/-/bin/; the -# final stage below COPYs the entire $CARGO_TOOLS_ROOT tree so this layout is -# preserved at runtime. -RUN scripts/install_compiler_binaries.sh +# Install the Sierra-to-Native compiler binary used at runtime (Sierra-to-Casm +# compilation is done in-process). The binary lands under +# $CARGO_TOOLS_ROOT/-/bin/; the final stage below COPYs +# the entire $CARGO_TOOLS_ROOT tree so this layout is preserved at runtime. +RUN scripts/install_compiler_binaries.sh --native # ============================================================================= # Stage 4: Final runtime image @@ -104,9 +104,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ ENV ID=1001 WORKDIR /app -# Copy the binary and both compilers (Sierra-to-CASM and Sierra-to-Native). +# Copy the binary and the Sierra-to-Native compiler. COPY --from=builder /app/target/release/blockifier_reexecution ./target/release/blockifier_reexecution -# Per-version compiler binaries; their absolute path is constructed from +# Per-version compiler binary; its absolute path is constructed from # $CARGO_TOOLS_ROOT at runtime. ENV CARGO_TOOLS_ROOT=/opt/cargo-tools COPY --from=builder /var/tmp/rust/tools ${CARGO_TOOLS_ROOT} diff --git a/crates/starknet_transaction_prover/Dockerfile b/crates/starknet_transaction_prover/Dockerfile index ccfdc742fa7..01038b80438 100644 --- a/crates/starknet_transaction_prover/Dockerfile +++ b/crates/starknet_transaction_prover/Dockerfile @@ -144,12 +144,6 @@ RUN BUILD_FLAGS=$([ "$BUILD_MODE" = "release" ] && echo "--release" || true); \ cargo build $BUILD_FLAGS -p starknet_transaction_prover --features stwo_proving; \ fi -# Install compiler binary used for Sierra to CASM compilation at runtime. -# Binary lands under $CARGO_TOOLS_ROOT/-/bin/; the -# final stage below COPYs the entire $CARGO_TOOLS_ROOT tree so this layout is -# preserved at runtime. -RUN scripts/install_compiler_binaries.sh --sierra - # ============================================================================= # Stage 4: Final runtime image # ============================================================================= @@ -172,11 +166,6 @@ COPY --from=builder /app/target/${BUILD_MODE}/starknet_transaction_prover ./targ # Copy resources needed by the service. COPY --from=builder /app/crates/starknet_transaction_prover/resources ./crates/starknet_transaction_prover/resources -# Per-version Sierra-to-CASM compiler binary; its absolute path is constructed -# from $CARGO_TOOLS_ROOT at runtime. -ENV CARGO_TOOLS_ROOT=/opt/cargo-tools -COPY --from=builder /var/tmp/rust/tools ${CARGO_TOOLS_ROOT} - # Copy tini for proper init handling. COPY --from=builder /usr/bin/tini /usr/bin/tini