busybox icon indicating copy to clipboard operation
busybox copied to clipboard

Consider single (standalone) applets variants

Open 0xF4CED opened this issue 2 years ago • 2 comments

Consider adding alternative variants that have all applets built as standalone binaries.(make_single_applets.sh). This would be great for building Docker images FROM scratch. It would allow users to selectively consume only the necessary tools, such as nslookup (~65K), for specific purposes like e.g. a HEALTHCHECK. For example: COPY --from=docker.io/busybox:musl-single /bin/nslookup /bin/

0xF4CED avatar May 31 '23 23:05 0xF4CED

Oh, interesting idea!

For your use case, it would only really make sense to support the uclibc variants because they're the only ones that are actually statically compiled (and thus would run successfully inside FROM scratch or any arbitrary image), but that's still interesting IMO! :+1:

tianon avatar Jun 01 '23 20:06 tianon

Oh okay, I was under the impression, that only the glibc variant wasn't statically compiled. Just uclibc would be sufficient, though.

0xF4CED avatar Jun 01 '23 22:06 0xF4CED