mirror of https://gitlab.com/famedly/conduit.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
755 B
36 lines
755 B
# Keep sorted |
|
{ default |
|
, dockerTools |
|
, lib |
|
, pkgs |
|
, timestamp |
|
}: |
|
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"; |
|
created = timestamp; |
|
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}" |
|
]; |
|
}; |
|
}
|
|
|