From f9d7c4398d1d5ee170fc7b8ab5ce721097d91b48 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Sat, 15 Oct 2022 00:32:00 -0700 Subject: [PATCH] bootstrap, base: only copy the necessary utilities --- cosmo-base/Dockerfile | 1 + cosmo-bootstrap/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cosmo-base/Dockerfile b/cosmo-base/Dockerfile index aa70a3a..71aadaf 100644 --- a/cosmo-base/Dockerfile +++ b/cosmo-base/Dockerfile @@ -22,6 +22,7 @@ RUN : \ ; # install the rest +COPY --chmod=0755 --from=localhost/notwa-util /nu/dedupe /usr/bin/ FROM builder AS distrib RUN --mount=type=tmpfs,target=/tmp : \ && . ./env \ diff --git a/cosmo-bootstrap/Dockerfile b/cosmo-bootstrap/Dockerfile index 2543cbe..55127eb 100644 --- a/cosmo-bootstrap/Dockerfile +++ b/cosmo-bootstrap/Dockerfile @@ -20,7 +20,7 @@ WORKDIR /cosmopolitan ENV V=0 COLUMNS=80 TMPDIR=/tmp COPY --chmod=0755 make.com build/bootstrap/make.com -COPY --chmod=0755 --from=localhost/notwa-util /nu/ /usr/bin/ +COPY --chmod=0755 --from=localhost/notwa-util /nu/shed /usr/bin/ RUN : \ # allow optimized builds to be more portable, so the container is too. \ && shed build/config.mk 's/-march=native/-march=haswell -mno-pclmul -mtune=generic/' \