Skip to content

Commit

Permalink
add docker target in nix
Browse files Browse the repository at this point in the history
  • Loading branch information
luizirber committed Apr 7, 2022
1 parent dfa7d96 commit 1784ffb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,20 @@
DYLD_LIBRARY_PATH = "${self.packages.${system}.lib}/lib";
NO_BUILD = "1";
};
docker =
let
bin = self.defaultPackage.${system};
in
pkgs.dockerTools.buildLayeredImage {
name = bin.pname;
tag = bin.version;
contents = [ bin ];

config = {
Cmd = [ "/bin/sourmash" ];
WorkingDir = "/";
};
};
};

defaultPackage = self.packages.${system}.sourmash;
Expand Down

0 comments on commit 1784ffb

Please sign in to comment.