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 <thomas@eizinger.io>
This commit is contained in:
Thomas Eizinger
2023-10-07 07:12:58 +11:00
committed by GitHub
parent 5cd1465f85
commit ecae222674

View File

@@ -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