mikesart / inotify-info

Linux inotify info reporting app
MIT License
298 stars 31 forks source link

dockerfile: even smaller build #22

Closed motiejus closed 9 months ago

motiejus commented 9 months ago

Since we're making a "small container game" anyway, this results in a 2.72MB container.

I would like to use a C++ toolchain akin to C's musl-gcc (which has everything set up to link against musl), but wasn't able to find a C++ compiler that can link to musl libc without too many hoops.

Zig can do that pretty easily, so here we go.

mikesart commented 9 months ago

Thanks! And I fully expect to see a post like this on docker images at the end of 2024 Motiejus... :)

https://www.muppetlabs.com/%7Ebreadbox/software/tiny/teensy.html

motiejus commented 9 months ago

I may dissapoint you, since I don't use docker myself for a while now, as I have discovered a better alternative to run software: https://github.com/NixOS/nixpkgs/pull/286538

But having looked at a few last PRs (getting familiar with the repo) I just couldn't resist. Thus this PR :)