Aggressively optimise size of Nix built Docker images

This commit is contained in:
bin
2025-09-19 04:23:57 +00:00
committed by Catherine
parent 5f3edfedf9
commit da212dcb89
6 changed files with 58 additions and 43 deletions
+10
View File
@@ -32,6 +32,16 @@
];
};
buildInputs = with pkgs; [
pkgsStatic.musl
];
ldflags = [
"-linkmode external"
"-extldflags -static"
"-s -w"
];
vendorHash = "sha256-f2+NDRrgqlyRn7kiBYbuUhDsQPF3Yf/3v24lqBUja6s=";
fixupPhase = ''