Files
nix/packages/docker/sish/default.nix
2025-07-06 11:36:13 +01:00

32 lines
711 B
Nix

{ pkgs, ... }:
pkgs.dockerTools.buildImage {
name = "sish";
fromImage = import ../base { inherit pkgs; };
copyToRoot = pkgs.buildEnv {
name = "root";
paths = with pkgs; [ sish ];
pathsToLink = [ "/bin" ];
};
config = {
Entrypoint = [ "sish" ];
Cmd = [
"--ssh-address=0.0.0.0:2222"
"--http-address=0.0.0.0:80"
"--load-templates=false"
"--private-keys-directory=/etc/sish/keys"
"--authentication-password=\"\""
"--authentication-keys-directory=/etc/sish/pubkeys"
];
ExposedPorts = {
"2222/tcp" = { };
};
WorkingDir = "/etc/sish";
Volumes = {
"/etc/sish/keys" = { };
"/etc/sish/pubkeys" = { };
};
};
}