Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider single (standalone) applets variants #176

Open
0xF4CED opened this issue May 31, 2023 · 2 comments
Open

Consider single (standalone) applets variants #176

0xF4CED opened this issue May 31, 2023 · 2 comments

Comments

@0xF4CED
Copy link

0xF4CED commented May 31, 2023

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/

@tianon
Copy link
Member

tianon commented Jun 1, 2023

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! 👍

@0xF4CED
Copy link
Author

0xF4CED commented Jun 1, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants