copy unbourne from cosmo-all

This commit is contained in:
Connor Olding 2022-10-14 17:02:50 -07:00
parent 4b4c37df77
commit 9623c952dc
2 changed files with 7 additions and 9 deletions

View File

@ -31,4 +31,9 @@ RUN --mount=type=cache,id=cosmo-build-all,target=/cosmopolitan/o,sharing=locked
&& touch o//test/libc/calls/getpriority_test.com.runs \
\
&& ./makeit MODE="$mode" all \
\
# install the binaries somewhere so we can retrieve them without mounting cache: \
&& find o '(' -name '*.com' -o -name '*.com.dbg' ')' -exec \
install -m0755 -t /usr/local/bin {} \
+ \
;

View File

@ -1,12 +1,5 @@
FROM cosmo-bootstrap AS builder
RUN --mount=type=tmpfs,target=/tmp : \
&& . ./env \
&& ./expand ./makeit e//unbourne.com \
&& ./expand cp -t /usr/bin e//unbourne.com e//unbourne.com.dbg \
;
FROM scratch AS runner
COPY --chmod=0755 --from=localhost/notwa-util /nu/busybox /bin/busybox
COPY --chmod=0755 --from=builder /cosmopolitan/build/bootstrap/ape.elf /bin/ape
COPY --chmod=0755 --from=builder /usr/bin/unbourne.com /usr/bin/unbourne.com.dbg /bin/
COPY --chmod=0755 --from=localhost/cosmo-all /cosmopolitan/build/bootstrap/ape.elf /bin/ape
COPY --chmod=0755 --from=localhost/cosmo-all /usr/local/bin/unbourne.* /bin/
ENTRYPOINT ["/bin/ape", "/bin/unbourne.com"]