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