From 9b701fdf981443b8a2916a79c8703a3cb64b8fe1 Mon Sep 17 00:00:00 2001 From: Remo Senekowitsch Date: Mon, 4 May 2026 18:31:39 +0200 Subject: [PATCH] Reduce unneeded image build cache invalidation Previously, the image build would recompile the analyzer when some unrelated files were changed. By only copying the files required to build the analyzer, these unnecessary rebuilds are avoided. --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 39b7e84..f05cbae 100644 --- a/Dockerfile +++ b/Dockerfile @@ -49,7 +49,8 @@ EOF FROM rust:1.95.0 AS build WORKDIR /work -COPY . . +COPY Cargo.* . +COPY src src RUN cargo build --release