From f5f657d3edc9476ce240798636c6904e51f0c727 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Fri, 14 Oct 2022 16:53:54 -0700 Subject: [PATCH] add unbourne --- build-all | 2 +- cosmo-unbourne/Dockerfile | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 cosmo-unbourne/Dockerfile diff --git a/build-all b/build-all index fc565d9..cdb296f 100755 --- a/build-all +++ b/build-all @@ -52,7 +52,7 @@ build() { : \ && echo build cosmo-python \ && echo build cosmo-quickjs \ && echo build cosmo-sqlite \ - && echo build cosmo-unbourne \ + && build cosmo-unbourne \ `# phase 5` \ && build cosmo-kuroko \ && build cosmo-muon \ diff --git a/cosmo-unbourne/Dockerfile b/cosmo-unbourne/Dockerfile new file mode 100644 index 0000000..bcdd577 --- /dev/null +++ b/cosmo-unbourne/Dockerfile @@ -0,0 +1,12 @@ +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/ +ENTRYPOINT ["/bin/ape", "/bin/unbourne.com"]