Skip to content

Commit 3a14f9a

Browse files
blackheavenfrasertweedale
authored andcommitted
fix(tools): reduce docker size
1 parent 0ed9f85 commit 3a14f9a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/nix.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
uses: actions/checkout@v3
2929
- name: Install Nix
3030
uses: DeterminateSystems/nix-installer-action@main
31+
with:
32+
extra-conf: system-features = nixos-test benchmark big-parallel kvm
3133
- uses: DeterminateSystems/magic-nix-cache-action@main
3234
- name: Check Nix flake inputs
3335
uses: DeterminateSystems/flake-checker-action@v4

code/hsec-tools/flake.nix

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,16 @@
5555
name = "image-root";
5656
paths = [
5757
self.packages.${system}.hsec-tools
58-
pkgs.git.out
58+
pkgs.gitMinimal.out
5959
gitconfig
6060
];
6161
pathsToLink = [ "/bin" "/" ];
6262
};
63+
runAsRoot = "rm -Rf /share";
6364
config = {
6465
Cmd = [ "/bin/hsec-tools" ];
6566
Env = [
66-
"LOCALE_ARCHIVE=${pkgs.glibcLocales}/lib/locale/locale-archive"
67+
"LOCALE_ARCHIVE=${pkgs.glibcLocalesUtf8}/lib/locale/locale-archive"
6768
"LC_TIME=en_US.UTF-8"
6869
"LANG=en_US.UTF-8"
6970
"LANGUAGE=en"

0 commit comments

Comments
 (0)