hello/nix/lxc.nix

14 lines
301 B
Nix
Raw Normal View History

2023-09-13 18:24:26 +00:00
{ 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" ];
}