From 6a7d0b8c0a48e8c9da74e9c9e5d26c84d5ed6ee9 Mon Sep 17 00:00:00 2001 From: panasenco Date: Tue, 11 May 2021 22:46:05 -0700 Subject: [PATCH] Made rust version in Dockerfile static, this seems to have really fixed the cache issues --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 -- 2.54.0