bootstrap, base: only copy the necessary utilities

This commit is contained in:
Connor Olding 2022-10-15 00:32:00 -07:00
parent 6d8247bd0e
commit f9d7c4398d
2 changed files with 2 additions and 1 deletions

View File

@ -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 \

View File

@ -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/' \