Skip to content

Commit 8322582

Browse files
committed
Ensure we use Cargo.lock when building in Docker
1 parent 0fdc8eb commit 8322582

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler/base/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ COPY --chown=playground entrypoint.sh /playground/tools/
5656

5757
FROM toolchain as wasm-tools
5858

59-
RUN cargo install wasm-tools
59+
RUN cargo install --locked wasm-tools
6060

6161
# Fetch all the crate source files
6262

@@ -79,7 +79,7 @@ RUN cargo build --release --manifest-path=/playground/modify-cargo-toml/Cargo.to
7979

8080
FROM toolchain as chef-available
8181

82-
RUN cargo install cargo-chef
82+
RUN cargo install --locked cargo-chef
8383

8484
WORKDIR /orchestrator
8585

@@ -99,10 +99,10 @@ FROM chef-available as build-orchestrator
9999
COPY --chown=playground asm-cleanup /asm-cleanup
100100
COPY --chown=playground modify-cargo-toml /modify-cargo-toml
101101
COPY --chown=playground --from=prepare-orchestrator /orchestrator/recipe.json /orchestrator/recipe.json
102-
RUN cargo chef cook --release
102+
RUN cargo chef cook --locked --release
103103

104104
COPY --chown=playground orchestrator /orchestrator
105-
RUN cargo install --path .
105+
RUN cargo install --locked --path .
106106

107107
# Compiler and pre-compiled crates
108108

0 commit comments

Comments
 (0)