1- # crates/starknet_os_runner /Dockerfile
1+ # crates/starknet_transaction_prover /Dockerfile
22#
3- # Self-contained Dockerfile for building the starknet_os_runner service.
4- # This Dockerfile is designed for external parties to build and run the OS runner
3+ # Self-contained Dockerfile for building the starknet_transaction_prover service.
4+ # This Dockerfile is designed for external parties to build and run the tx prover
55# without requiring the full internal build infrastructure.
66#
77# Build:
8- # docker build -f crates/starknet_os_runner /Dockerfile -t os_runner :latest .
8+ # docker build -f crates/starknet_transaction_prover /Dockerfile -t tx_prover :latest .
99#
1010# Run:
11- # docker run --rm -p 3000:3000 os_runner :latest
11+ # docker run --rm -p 3000:3000 tx_prover :latest
1212#
1313# Key differences from the internal Dockerfile (deployments/images/sequencer/Dockerfile):
1414# - No dockerfile-x INCLUDE directive
@@ -52,7 +52,7 @@ ENV CARGO_HOME=${RUSTUP_HOME}
5252ENV PATH="${RUSTUP_HOME}/bin:${PATH}"
5353
5454# Use the crate-level rust-toolchain.toml (nightly).
55- COPY crates/starknet_os_runner /rust-toolchain.toml rust-toolchain.toml
55+ COPY crates/starknet_transaction_prover /rust-toolchain.toml rust-toolchain.toml
5656
5757# --default-toolchain none: skip installing the default stable toolchain, since we only need
5858# the nightly defined in rust-toolchain.toml.
@@ -67,7 +67,7 @@ RUN python3 -m venv ${VIRTUAL_ENV}
6767ENV PATH="${VIRTUAL_ENV}/bin:${PATH}"
6868
6969# Install cairo-lang package for cairo-compile tool.
70- # This is the minimum required for building starknet_os_runner .
70+ # This is the minimum required for building starknet_transaction_prover .
7171ARG CAIRO_LANG_VERSION=0.14.1a0
7272RUN pip install --no-cache-dir cairo-lang==${CAIRO_LANG_VERSION}
7373
@@ -77,7 +77,7 @@ RUN pip install --no-cache-dir cairo-lang==${CAIRO_LANG_VERSION}
7777FROM base AS planner
7878WORKDIR /app
7979COPY . .
80- COPY crates/starknet_os_runner /rust-toolchain.toml rust-toolchain.toml
80+ COPY crates/starknet_transaction_prover /rust-toolchain.toml rust-toolchain.toml
8181RUN cargo chef prepare --recipe-path recipe.json
8282
8383# =============================================================================
@@ -98,17 +98,17 @@ RUN if [ "$BUILD_MODE" != "release" ] && [ "$BUILD_MODE" != "debug" ]; then \
9898 fi
9999
100100# Cache dependencies with cargo-chef.
101- # Use -p starknet_os_runner to avoid building LLVM-dependent crates (e.g., cairo_native).
101+ # Use -p starknet_transaction_prover to avoid building LLVM-dependent crates (e.g., cairo_native).
102102COPY --from=planner /app/recipe.json recipe.json
103- COPY crates/starknet_os_runner /rust-toolchain.toml rust-toolchain.toml
103+ COPY crates/starknet_transaction_prover /rust-toolchain.toml rust-toolchain.toml
104104RUN BUILD_FLAGS=$([ "$BUILD_MODE" = "release" ] && echo "--release" || true); \
105- cargo chef cook $BUILD_FLAGS -p starknet_os_runner --features stwo_proving --recipe-path recipe.json
105+ cargo chef cook $BUILD_FLAGS -p starknet_transaction_prover --features stwo_proving --recipe-path recipe.json
106106
107- # Copy source and build starknet_os_runner (without cairo_native feature).
107+ # Copy source and build starknet_transaction_prover (without cairo_native feature).
108108COPY . .
109- COPY crates/starknet_os_runner /rust-toolchain.toml rust-toolchain.toml
109+ COPY crates/starknet_transaction_prover /rust-toolchain.toml rust-toolchain.toml
110110RUN BUILD_FLAGS=$([ "$BUILD_MODE" = "release" ] && echo "--release" || true); \
111- cargo build $BUILD_FLAGS -p starknet_os_runner --features stwo_proving
111+ cargo build $BUILD_FLAGS -p starknet_transaction_prover --features stwo_proving
112112
113113# =============================================================================
114114# Stage 4: Final runtime image
@@ -127,10 +127,10 @@ ENV ID=1001
127127WORKDIR /app
128128
129129# Copy the binary.
130- COPY --from=builder /app/target/${BUILD_MODE}/starknet_os_runner ./target/${BUILD_MODE}/starknet_os_runner
130+ COPY --from=builder /app/target/${BUILD_MODE}/starknet_transaction_prover ./target/${BUILD_MODE}/starknet_transaction_prover
131131
132132# Copy resources needed by the service (includes bootloader).
133- COPY --from=builder /app/crates/starknet_os_runner /resources ./crates/starknet_os_runner /resources
133+ COPY --from=builder /app/crates/starknet_transaction_prover /resources ./crates/starknet_transaction_prover /resources
134134
135135# Copy starknet-sierra-compile binary required for Sierra to Casm compilation.
136136COPY --from=builder /app/target/${BUILD_MODE}/shared_executables/starknet-sierra-compile ./target/${BUILD_MODE}/shared_executables/starknet-sierra-compile
@@ -152,4 +152,4 @@ EXPOSE 3000
152152USER ${ID}
153153
154154# Use tini as the init process.
155- ENTRYPOINT ["sh" , "-c" , "exec tini -- /app/target/$BUILD_MODE/starknet_os_runner \" $@\" " , "--" ]
155+ ENTRYPOINT ["sh" , "-c" , "exec tini -- /app/target/$BUILD_MODE/starknet_transaction_prover \" $@\" " , "--" ]
0 commit comments