Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions crates/blockifier_reexecution/replay/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/<binary>-<version>/bin/<binary>; 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/<binary>-<version>/bin/<binary>; 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
Expand All @@ -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}
Expand Down
11 changes: 0 additions & 11 deletions crates/starknet_transaction_prover/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/<binary>-<version>/bin/<binary>; 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
# =============================================================================
Expand All @@ -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

Expand Down
Loading