let
pkgs = import (builtins.fetchTarball "https://github.com/nixos/nixpkgs/archive/d2fc6856824cb87742177eefc8dd534bdb6c3439.tar.gz") {};
in
pkgs.dockerTools.buildImage {
name = "actual-server";
tag = "latest";
config = {
Entrypoint = [ "${pkgs.coreutils}/bin/sleep" "100000" ];
ExposedPorts = {
"5006/tcp" = {};
};
Env = [
"NODE_ENV=production"
];
WorkingDir = "/data";
Volumes = {
"/data" = {};
};
};
}
This one fails the same, and does not try to run multiple processes. sleep
should not be terribly bothered about whether it is pid1