Skip to content

Commit

Permalink
update rust image
Browse files Browse the repository at this point in the history
  • Loading branch information
SebRollen committed Sep 15, 2021
1 parent 8c5ab7b commit 55f57ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust as planner
FROM rust:1.54 as planner
WORKDIR app
# We only pay the installation cost once,
# it will be cached from the second build onwards
Expand All @@ -10,13 +10,13 @@ COPY . .

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

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

FROM rust as builder
FROM rust:1.54 as builder
WORKDIR app
COPY . .
# Copy over the cached dependencies
Expand Down

0 comments on commit 55f57ab

Please sign in to comment.