IngwiePhoenix on Nostr: I was reading this article here: ...and decided to try and see how big an image ...
I was reading this article here:
https://mitchellh.com/writing/nix-with-dockerfiles...and decided to try and see how big an image 'just' containing htop would be - and it's actually massive. Honestly, Alpine + Musl still looks to be the better bet for this - it's hardly smaller...
I wonder if there is a musl/static Nix config? Like, use musl libc, prefer/compile only static binaries... In my own build, I could obviously also use UPX. But from a size perspective, I don't see the benefit of Nix over Alpine. o.o
Published at
2024-01-10 08:58:31Event JSON
{
"id": "1fdf2b4decb7e176797bd8c3a16e9ca4cbc6da6027d73eaf30f18753612a58a9",
"pubkey": "5e336907a3dda5cd58f11d162d8a4c9388f9cfb2f8dc4b469c8151e379c63bc9",
"created_at": 1704877111,
"kind": 1,
"tags": [],
"content": "I was reading this article here: https://mitchellh.com/writing/nix-with-dockerfiles\n...and decided to try and see how big an image 'just' containing htop would be - and it's actually massive. Honestly, Alpine + Musl still looks to be the better bet for this - it's hardly smaller...\nI wonder if there is a musl/static Nix config? Like, use musl libc, prefer/compile only static binaries... In my own build, I could obviously also use UPX. But from a size perspective, I don't see the benefit of Nix over Alpine. o.o",
"sig": "6afcac340bba6e99429439ab8cb490d96c2f394f7ac4bc7b4643c2a03376f91de0f3c58e6a0ebb352f49887082c919f778c338695da364add2c9b5024494d586"
}