bootstrap, base: only copy the necessary utilities
This commit is contained in:
parent
6d8247bd0e
commit
f9d7c4398d
2 changed files with 2 additions and 1 deletions
|
@ -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 \
|
||||
|
|
|
@ -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/' \
|
||||
|
|
Loading…
Add table
Reference in a new issue