mirror of
https://github.com/girlbossceo/conduwuit.git
synced 2024-12-04 11:04:27 +00:00
6cbaef2d12
Signed-off-by: strawberry <strawberry@puppygock.gay>
32 lines
576 B
Nix
32 lines
576 B
Nix
{ inputs
|
|
|
|
# Dependencies
|
|
, dockerTools
|
|
, lib
|
|
, main
|
|
, stdenv
|
|
, tini
|
|
}:
|
|
|
|
dockerTools.buildLayeredImage {
|
|
name = main.pname;
|
|
tag = "main";
|
|
created = "@${toString inputs.self.lastModified}";
|
|
contents = [
|
|
dockerTools.caCertificates
|
|
];
|
|
config = {
|
|
Entrypoint = if !stdenv.hostPlatform.isDarwin
|
|
# Use the `tini` init system so that signals (e.g. ctrl+c/SIGINT)
|
|
# are handled as expected
|
|
then [ "${lib.getExe' tini "tini"}" "--" ]
|
|
else [];
|
|
Cmd = [
|
|
"${lib.getExe main}"
|
|
];
|
|
Env = [
|
|
"RUST_BACKTRACE=full"
|
|
];
|
|
};
|
|
}
|