Skip to content

Commit

Permalink
fix(docker): lock when running cargo-chef
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanccn committed Oct 25, 2023
1 parent 65032e8 commit 4d5fed2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN cargo chef prepare --recipe-path recipe.json
FROM common-build AS builder

COPY --from=planner /build/recipe.json recipe.json
RUN cargo chef cook --release --target x86_64-unknown-linux-musl --recipe-path recipe.json
RUN cargo chef cook --recipe-path recipe.json --release --locked --target x86_64-unknown-linux-musl --bin valfisk

COPY . ./
ENV CARGO_BUILD_RUSTFLAGS="-C target-feature=+crt-static"
Expand Down

0 comments on commit 4d5fed2

Please sign in to comment.