From 18e77854be2cb21641a45006a137aca4cbb6b3c2 Mon Sep 17 00:00:00 2001 From: Daniel Trick Date: Thu, 29 Aug 2024 23:55:58 +0200 Subject: [PATCH] Install Rust toolchain with the "minimal" profile in order to save some more disk space. --- CHANGELOG.md | 1 + Dockerfile | 6 ++++-- README.md | 8 ++++---- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fb22e4d..5606529 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/). ### Changed - Install Rust and Cargo to the *default* locations. +- Install Rust toolchain with the `minimal` profile. ## r1 - 2024-08-27 diff --git a/Dockerfile b/Dockerfile index a5137a3..f3b8177 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,10 +14,12 @@ RUN apt-get update \ libclang-dev \ libtss2-dev \ pkg-config \ - && apt-get clean -y + rdfind \ + && rm -vrf /var/lib/apt/lists/* /var/cache/apt/* # Install Rust -RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=${RUST_VERSION} -y +RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=${RUST_VERSION} --profile=minimal -y \ + && rdfind -makeresultsfile false -makesymlinks true /root # Start the shell ENTRYPOINT ["/bin/bash", "-l"] diff --git a/README.md b/README.md index ff1a2d1..ee41739 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Ready to use development environment with [Rust/Cargo](https://www.rust-lang.org Version history --------------- -| **Release** | **Base system** | **Rust toolchain** | **TPM2 Software Stack** | -| --------------- | --------------------- | ------------------ | ----------------------- | -| r2 [2024-08-29] | Debian 12, 2024-08-12 | 1.80.0 | 3.2.1-3 | -| r1 [2024-08-27] | Debian 12, 2024-08-12 | 1.80.0 | 3.2.1-3 | +| **Release** | **Date** | **Base system** | **Rust toolchain** | **TPM2 Software Stack** | +| ----------- | ---------- | --------------------- | ------------------ | ----------------------- | +| r2 | 2024-08-29 | Debian 12, 2024-08-12 | 1.80.0 | 3.2.1-3 | +| r1 | 2024-08-27 | Debian 12, 2024-08-12 | 1.80.0 | 3.2.1-3 |