Switched from using @LukeMathWalker's image to using the official Rust image. Was experiencing cache issues before that, either due to the image, or due to Docker cache being weird...

This commit is contained in:
panasenco
2021-05-08 17:04:54 -07:00
parent 9b483d381f
commit c7943d2521

View File

@@ -1,11 +1,13 @@
# See https://github.com/LukeMathWalker/cargo-chef
FROM lukemathwalker/cargo-chef as planner
FROM rust as planner
WORKDIR /scryer-prolog
RUN cargo install cargo-chef
COPY . .
RUN cargo chef prepare --recipe-path recipe.json
FROM lukemathwalker/cargo-chef as cacher
FROM rust as cacher
WORKDIR /scryer-prolog
RUN cargo install cargo-chef
COPY --from=planner /scryer-prolog/recipe.json recipe.json
RUN cargo chef cook --release --recipe-path recipe.json