Skip to content

Commit 3ab93f3

Browse files
pb8oroypat
authored andcommitted
devctr: install Rust minimal profile
This was reverted in 157b739, but since then we have added more Rust toolchains, so it adds up. Removing reduces the image size quite a bit: Uncompressed: 4.57GiB -> 3.31 GiB (-28%) Compressed: 1213MiB -> 1058MiB (-13%) Signed-off-by: Pablo Barbáchano <[email protected]>
1 parent 06a3b46 commit 3ab93f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/devctr/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ RUN cd /tmp/poetry && \
100100
# - Build and install crosvm (used as vhost-user-blk backend)
101101
# - Clean up cargo compilation directories
102102
# - Always install both x86_64 and aarch64 musl targets, as our rust-toolchain.toml would force on-the-fly installation of both anyway
103-
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain "$RUST_TOOLCHAIN" \
103+
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal --default-toolchain "$RUST_TOOLCHAIN" \
104104
&& rustup target add x86_64-unknown-linux-musl \
105105
&& rustup target add aarch64-unknown-linux-musl \
106-
&& rustup component add llvm-tools-preview \
106+
&& rustup component add llvm-tools-preview clippy rustfmt \
107107
&& cargo install --locked cargo-audit cargo-deny grcov cargo-sort cargo-afl \
108108
&& (if [ "$ARCH" = "x86_64" ]; then cargo install --locked kani-verifier && cargo kani setup; else true; fi) \
109109
\

0 commit comments

Comments
 (0)