From ece4fc20265c45dd2cbbde93f2debb9045222c6b Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Wed, 23 Feb 2022 13:49:01 +0000 Subject: [PATCH] Dockerfile: Install minimal version of toolchain This doesn't install the docs which are about 500MiB per toolchain. Signed-off-by: Rob Bradford --- resources/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/Dockerfile b/resources/Dockerfile index 3680377a0..a53b3f3ab 100644 --- a/resources/Dockerfile +++ b/resources/Dockerfile @@ -92,9 +92,9 @@ ENV OPENSSL_INCLUDE_DIR=/usr/include/ # Install the rust toolchain RUN export ARCH="$(uname -m)" \ - && nohup curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain "$RUST_TOOLCHAIN" \ + && nohup curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain "$RUST_TOOLCHAIN" \ && rustup target add $ARCH-unknown-linux-musl --toolchain "$RUST_TOOLCHAIN" \ - && if [ "$TARGETARCH" = "amd64" ]; then rustup toolchain add $RUST_TOOLCHAIN-x86_64-unknown-linux-musl; fi \ + && if [ "$TARGETARCH" = "amd64" ]; then rustup toolchain add --profile minimal $RUST_TOOLCHAIN-x86_64-unknown-linux-musl; fi \ && if [ "$TARGETARCH" = "amd64" ]; then rustup component add rustfmt; fi \ && if [ "$TARGETARCH" = "amd64" ]; then rustup component add clippy; fi \ && rm -rf "$CARGO_HOME/registry" \