diff --git a/flake.nix b/flake.nix index 50fe2135..31c96bcf 100644 --- a/flake.nix +++ b/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