boot2

Playing with the boostrap
git clone https://git.ryansepassi.com/git/boot2.git
Log | Files | Refs | README

Containerfile.busybox (1176B)


      1 ## Per-arch image used by the standalone bootN.sh entrypoints.
      2 ## Two stages:
      3 ##   1. pull busybox:musl as the build container (provides a single
      4 ##      static /bin/busybox plus a tree of applet symlinks)
      5 ##   2. FROM scratch, copy the busybox binary + symlinks into a fresh
      6 ##      empty rootfs
      7 ##
      8 ## The result is a per-arch image whose entire userland is
      9 ## statically-linked busybox. No libc, no resolver, no /etc.
     10 ## This is the only container the bootN.sh scripts ever exec into.
     11 ##
     12 ## Built per --platform; tag as boot2-busybox:<arch>.
     13 ## Multi-arch index pinned to the same digest the boot2-busybox-test image
     14 ## uses (tests/containers/Containerfile.busybox-test); per-arch entries within
     15 ## the index, fetched 2026-04-24:
     16 ##   amd64   sha256:298efc24641ff8a1a285abdc555a0ce5ab7c42eb085e1be099f824188e069604
     17 ##   arm64   sha256:458a2ae4cb09bf96f8e24f135474b1552039738ed16ee470320a9c05c2da2004
     18 ##   riscv64 sha256:657f5a49af9288dc98d2bf45343e45c57c3caf3946aa9df436d05da320a8c863
     19 
     20 FROM docker.io/library/busybox@sha256:19b646668802469d968a05342a601e78da4322a414a7c09b1c9ee25165042138 AS busybox
     21 
     22 FROM scratch
     23 COPY --from=busybox /bin /bin
     24 WORKDIR /work
     25 CMD ["/bin/sh"]