stargazing/cosmo-sed/Dockerfile
2022-10-14 16:49:33 -07:00

12 lines
482 B
Docker

FROM cosmo-bootstrap 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"]