From 346f77f8bab7247a111b6f83983484d447dd2c96 Mon Sep 17 00:00:00 2001 From: Nicolas Patry Date: Thu, 6 Jun 2024 10:33:01 +0200 Subject: [PATCH] Less cache misses on cargo build. --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 6492d723..d2cde6a4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,6 +23,9 @@ COPY --from=planner /usr/src/recipe.json recipe.json COPY Cargo.lock Cargo.lock RUN cargo chef cook --release --recipe-path recipe.json +ARG GIT_SHA +ARG DOCKER_LABEL + COPY Cargo.toml Cargo.toml COPY rust-toolchain.toml rust-toolchain.toml COPY proto proto