From: panasenco Date: Wed, 12 May 2021 05:46:05 +0000 (-0700) Subject: Made rust version in Dockerfile static, this seems to have really fixed the cache... X-Git-Tag: v0.9.0~70^2 X-Git-Url: https://git.sagredo.dev/?a=commitdiff_plain;h=6a7d0b8c0a48e8c9da74e9c9e5d26c84d5ed6ee9;p=scryer-prolog.git Made rust version in Dockerfile static, this seems to have really fixed the cache issues --- diff --git a/Dockerfile b/Dockerfile index 15132c96..12f49bca 100755 --- a/Dockerfile +++ b/Dockerfile @@ -1,17 +1,18 @@ # See https://github.com/LukeMathWalker/cargo-chef -FROM rust as planner +ARG RUST_VERSION=1.52.1-buster +FROM rust:${RUST_VERSION} as planner WORKDIR /scryer-prolog RUN cargo install cargo-chef COPY . . RUN cargo chef prepare --recipe-path recipe.json -FROM rust as cacher +FROM rust:${RUST_VERSION} 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 -FROM rust as builder +FROM rust:${RUST_VERSION} as builder WORKDIR /scryer-prolog COPY . . # Copy over the cached dependencies