forked from mirror/grapevine
add oci image to flake
This commit is contained in:
parent
9e6a5e6604
commit
64e12f2b22
1 changed files with 17 additions and 1 deletions
18
flake.nix
18
flake.nix
|
@ -70,8 +70,24 @@
|
|||
};
|
||||
in
|
||||
{
|
||||
packages = {
|
||||
packages = rec {
|
||||
default = (mkScope pkgs).default;
|
||||
oci-image = pkgs.dockerTools.buildImage {
|
||||
name = default.pname;
|
||||
tag = "next";
|
||||
copyToRoot = [
|
||||
pkgs.dockerTools.caCertificates
|
||||
];
|
||||
config = {
|
||||
# Use the `tini` init system so that signals (e.g. ctrl+c/SIGINT)
|
||||
# are handled as expected
|
||||
Entrypoint = [
|
||||
"${pkgs.lib.getExe' pkgs.tini "tini"}"
|
||||
"--"
|
||||
"${pkgs.lib.getExe default}"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
//
|
||||
builtins.listToAttrs
|
||||
|
|
Loading…
Reference in a new issue