stargazing/cosmo-awk/Dockerfile
2022-10-14 16:35:09 -07:00

13 lines
478 B
Docker

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