From a973f3106501984408a06f30c733725f66c793f8 Mon Sep 17 00:00:00 2001 From: Will Sarg <12886992+willsarg@users.noreply.github.com> Date: Tue, 17 Feb 2026 17:00:23 -0500 Subject: [PATCH] fix(docker): avoid double compile in smoke build (#686) --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 13118f7..3b473b9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,8 +12,8 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ pkg-config \ && rm -rf /var/lib/apt/lists/* -# 1. Copy manifests to cache dependencies -COPY Cargo.toml Cargo.lock ./ +# 1. Copy manifests and toolchain pin to cache dependencies with the same compiler +COPY Cargo.toml Cargo.lock rust-toolchain.toml ./ # Create dummy targets declared in Cargo.toml so manifest parsing succeeds. RUN mkdir -p src benches \ && echo "fn main() {}" > src/main.rs \