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 22, 2023
1 parent b5f11e2 commit a09cb6f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
with:
extra-conf: system-features = nixos-test benchmark big-parallel kvm
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Check Nix flake inputs
uses: DeterminateSystems/flake-checker-action@v4
Expand Down
5 changes: 3 additions & 2 deletions code/hsec-tools/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,16 @@
name = "image-root";
paths = [
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 a09cb6f

Please sign in to comment.