FROM cosmo-build AS builder RUN --mount=type=tmpfs,target=/tmp : \ && . ./env \ && ./expand ./makeit t//sed/sed.com \ && ./expand cp -t /usr/bin t//sed/sed.com t//sed/sed.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/sed.com /usr/bin/sed.com.dbg /bin/ ENTRYPOINT ["/bin/ape", "/bin/sed.com"]