mirror of
https://gitlab.com/famedly/conduit.git
synced 2025-06-27 16:35:59 +00:00
34 lines
720 B
Nix
34 lines
720 B
Nix
# Keep sorted
|
|
{ default
|
|
, dockerTools
|
|
, lib
|
|
, pkgs
|
|
}:
|
|
let
|
|
# See https://github.com/krallin/tini/pull/223
|
|
tini = pkgs.tini.overrideAttrs {
|
|
patches = [ (pkgs.fetchpatch {
|
|
url = "https://patch-diff.githubusercontent.com/raw/krallin/tini/pull/223.patch";
|
|
hash = "sha256-i6xcf+qpjD+7ZQY3ueiDaxO4+UA2LutLCZLNmT+ji1s=";
|
|
})
|
|
];
|
|
};
|
|
in
|
|
dockerTools.buildImage {
|
|
name = default.pname;
|
|
tag = "next";
|
|
copyToRoot = [
|
|
dockerTools.caCertificates
|
|
];
|
|
config = {
|
|
# Use the `tini` init system so that signals (e.g. ctrl+c/SIGINT)
|
|
# are handled as expected
|
|
Entrypoint = [
|
|
"${lib.getExe' tini "tini"}"
|
|
"--"
|
|
];
|
|
Cmd = [
|
|
"${lib.getExe default}"
|
|
];
|
|
};
|
|
}
|