From ecae222674574d804263841a7fa5ef582cfa16ab Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Sat, 7 Oct 2023 07:12:58 +1100 Subject: [PATCH] fix(rust): install toolchain in base layer (#2258) Copying the `rust-toolchain.toml` file in is one thing but if we want to avoid repeatedly installing it, we should do that in the same layer too. Signed-off-by: Thomas Eizinger --- rust/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/rust/Dockerfile b/rust/Dockerfile index 7ec469740..db87b1b23 100644 --- a/rust/Dockerfile +++ b/rust/Dockerfile @@ -2,6 +2,7 @@ FROM lukemathwalker/cargo-chef:latest-rust-1.72-slim-bookworm as chef # See https://github.com/LukeMathWalker/cargo-chef/issues/231. COPY rust-toolchain.toml rust-toolchain.toml +RUN rustup show WORKDIR /build