1
0
Fork 0
forked from mirror/grapevine

add oci image to flake

This commit is contained in:
tezlm 2024-09-12 23:49:44 -07:00
parent 9e6a5e6604
commit 64e12f2b22
Signed by: tezlm
GPG key ID: 649733FCD94AFBBA

View file

@ -70,8 +70,24 @@
}; };
in in
{ {
packages = { packages = rec {
default = (mkScope pkgs).default; 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 builtins.listToAttrs