Skip to content

Commit

Permalink
delete old docker files and minimify image after build
Browse files Browse the repository at this point in the history
  • Loading branch information
cottand committed Sep 29, 2024
1 parent a45e1f2 commit 1aabb36
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 39 deletions.
18 changes: 0 additions & 18 deletions docker/alpine.Dockerfile

This file was deleted.

21 changes: 0 additions & 21 deletions docker/slim.Dockerfile

This file was deleted.

6 changes: 6 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
version = "1.6.0";
src = nixpkgs.lib.sources.cleanSource ./.;
ldflags = [ "-s -w " ];
postInstall = ''
cd $out/bin
${pkgs.upx}/bin/upx -9 -o leng.mini leng
rm leng
mv leng.mini leng
'';
};
leng-container-image = pkgs.dockerTools.buildImage {
name = "leng";
Expand Down

0 comments on commit 1aabb36

Please sign in to comment.