From 00da8e65a0307d2db66436da835b10d6e6ea8072 Mon Sep 17 00:00:00 2001 From: Gautier DI FOLCO Date: Sun, 16 Jul 2023 16:46:26 +0200 Subject: [PATCH] fix(tools): reduce docker size --- code/hsec-tools/flake.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/hsec-tools/flake.nix b/code/hsec-tools/flake.nix index ed82b3f0..64e582b0 100644 --- a/code/hsec-tools/flake.nix +++ b/code/hsec-tools/flake.nix @@ -47,15 +47,16 @@ name = "image-root"; paths = [ (pkgs.haskell.lib.justStaticExecutables self.packages.${system}.hsec-tools) - pkgs.git.out + pkgs.gitMinimal.out gitconfig ]; pathsToLink = [ "/bin" "/" ]; }; + runAsRoot = "rm -Rf /share"; config = { Cmd = [ "/bin/hsec-tools" ]; Env = [ - "LOCALE_ARCHIVE=${pkgs.glibcLocales}/lib/locale/locale-archive" + "LOCALE_ARCHIVE=${pkgs.glibcLocalesUtf8}/lib/locale/locale-archive" "LC_TIME=en_US.UTF-8" "LANG=en_US.UTF-8" "LANGUAGE=en"