From cf0d459aafaa5de6093c97a49e9bbb993fca76d3 Mon Sep 17 00:00:00 2001 From: Nicolas Patry Date: Thu, 6 Jun 2024 10:33:55 +0200 Subject: [PATCH] Revert "Less cache misses on cargo build." This reverts commit 5aec4154c2b7a49c80f256422c523410d9f96ec3. --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0cffda4c75c..659e2673680 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,9 @@ RUN cargo chef prepare --recipe-path recipe.json FROM chef AS builder +ARG GIT_SHA +ARG DOCKER_LABEL + RUN PROTOC_ZIP=protoc-21.12-linux-x86_64.zip && \ curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v21.12/$PROTOC_ZIP && \ unzip -o $PROTOC_ZIP -d /usr/local bin/protoc && \ @@ -24,9 +27,6 @@ RUN PROTOC_ZIP=protoc-21.12-linux-x86_64.zip && \ COPY --from=planner /usr/src/recipe.json recipe.json RUN cargo chef cook --profile release-opt --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