From ff56109ae6e5faf5a8797051578831e1e1b9857b Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Tue, 17 Oct 2023 14:42:20 +0300 Subject: [PATCH] Don't install rustdoc along with default Rust toolchain Downloading and installing rustdoc every the image is built takes considerable time that is not necessary, so specify only the rustup components we need. Signed-off-by: Manos Pitsidianakis --- build_container.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build_container.sh b/build_container.sh index 8520f5f..2a17978 100755 --- a/build_container.sh +++ b/build_container.sh @@ -18,7 +18,9 @@ apt-get clean && rm -rf /var/lib/apt/lists/* pip3 install --no-cache-dir pytest pexpect boto3 pytest-timeout && apt purge -y python3-pip # Install rustup and a fixed version of Rust. -curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain "$RUST_TOOLCHAIN" +curl https://sh.rustup.rs -sSf | sh -s -- \ + -y --default-toolchain "$RUST_TOOLCHAIN" \ + --profile minimal --component clippy,rustfmt # Install cargo tools. # Use `git` executable to avoid OOM on arm64: