3336d3f812
This makes the Nix code a lot easier to reason about.
25 lines
414 B
Nix
25 lines
414 B
Nix
# Keep sorted
|
|
{ default
|
|
, dockerTools
|
|
, lib
|
|
, tini
|
|
}:
|
|
|
|
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}"
|
|
];
|
|
};
|
|
}
|