hello/nix/lxc.nix

16 lines
297 B
Nix
Raw Normal View History

2023-09-21 15:52:33 +00:00
{
pkgs,
package,
}:
2023-09-13 18:24:26 +00:00
pkgs.dockerTools.buildImage {
name = package.pname;
2023-09-21 15:52:33 +00:00
tag = ["latest" "0.1.0"]; #package.version
2023-09-13 18:24:26 +00:00
created = "now";
copyToRoot = pkgs.buildEnv {
name = "image-root";
2023-09-21 15:52:33 +00:00
paths = [package];
pathsToLink = ["/bin"];
2023-09-13 18:24:26 +00:00
};
2023-09-21 15:52:33 +00:00
config.Cmd = ["${package}/bin/hello"];
2023-09-13 18:24:26 +00:00
}