From a388443ccac35559a5f2b5b115641d86acf127c1 Mon Sep 17 00:00:00 2001 From: andrussal Date: Tue, 2 Dec 2025 07:13:36 +0100 Subject: [PATCH] Reduce compose build disk footprint further --- .github/workflows/lint.yml | 4 ++++ testing-framework/assets/stack/Dockerfile | 2 ++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4c31c39..8e3a071 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -198,6 +198,10 @@ jobs: - name: Prepare workspace tmpdir run: mkdir -p "$TMPDIR" + - name: Prune docker to free space + run: | + docker system prune -af --volumes || true + - name: Install Rust toolchain uses: dtolnay/rust-toolchain@master with: diff --git a/testing-framework/assets/stack/Dockerfile b/testing-framework/assets/stack/Dockerfile index 1e537b2..5791247 100644 --- a/testing-framework/assets/stack/Dockerfile +++ b/testing-framework/assets/stack/Dockerfile @@ -76,6 +76,8 @@ RUN mkdir -p /opt/circuits && \ ENV NOMOS_CIRCUITS=/opt/circuits ENV CARGO_TARGET_DIR=/tmp/target ENV CARGO_INCREMENTAL=0 +ENV CARGO_PROFILE_DEV_DEBUG=0 +ENV RUSTFLAGS="-C debuginfo=0" # Fetch the nomos-node sources pinned in Cargo.lock and build the runtime binaries. RUN if [ ! -d /workspace/nomos-node ]; then \