hello/nix/lxc.nix
2023-09-20 14:40:29 -04:00

13 lines
301 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" ];
}