hello/nix/lxc.nix
2023-09-21 11:52:33 -04:00

15 lines
297 B
Nix

{
pkgs,
package,
}:
pkgs.dockerTools.buildImage {
name = package.pname;
tag = ["latest" "0.1.0"]; #package.version
created = "now";
copyToRoot = pkgs.buildEnv {
name = "image-root";
paths = [package];
pathsToLink = ["/bin"];
};
config.Cmd = ["${package}/bin/hello"];
}