Skip to content

Commit

Permalink
fix(tools): reduce docker size
Browse files Browse the repository at this point in the history
  • Loading branch information
blackheaven committed Jul 16, 2023
1 parent ff2e4cc commit 00da8e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions code/hsec-tools/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 00da8e6

Please sign in to comment.