From: panasenco Date: Sun, 9 May 2021 00:04:54 +0000 (-0700) Subject: Switched from using @LukeMathWalker's image to using the official Rust image. Was... X-Git-Tag: v0.9.0~74^2 X-Git-Url: https://git.sagredo.dev/?a=commitdiff_plain;h=c7943d252128862c79408061c994b760aa0be532;p=scryer-prolog.git 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... --- diff --git a/Dockerfile b/Dockerfile index 87cf1aee..15132c96 100755 --- a/Dockerfile +++ b/Dockerfile @@ -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