Skip to content

Commit

Permalink
try updating cargo chef
Browse files Browse the repository at this point in the history
  • Loading branch information
SebRollen committed Oct 19, 2021
1 parent 2450637 commit 0a65164
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ WORKDIR app
# it will be cached from the second build onwards
# To ensure a reproducible build consider pinning
# the cargo-chef version with `--version X.X.X`
RUN cargo install cargo-chef --version 0.1.19
RUN cargo install cargo-chef --version 0.1.31

COPY . .

RUN cargo chef prepare --recipe-path recipe.json

FROM rust:1.54 as cacher
WORKDIR app
RUN cargo install cargo-chef --version 0.1.19
RUN cargo install cargo-chef --version 0.1.31
COPY --from=planner /app/recipe.json recipe.json
RUN --mount=type=ssh cargo chef cook --release --recipe-path recipe.json

Expand Down

0 comments on commit 0a65164

Please sign in to comment.