]> Repositorios git - scryer-prolog.git/commitdiff
Made rust version in Dockerfile static, this seems to have really fixed the cache...
authorpanasenco <[email protected]>
Wed, 12 May 2021 05:46:05 +0000 (22:46 -0700)
committerpanasenco <[email protected]>
Wed, 12 May 2021 05:46:11 +0000 (22:46 -0700)
Dockerfile

index 15132c962877b39f658481ddb4b1e70422c454a7..12f49bca372b13b978e05955cbb16cb6c147ffc7 100755 (executable)
@@ -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