2024-08-04 00:48:21 +00:00
|
|
|
{ config, pkgs, ...}:
|
|
|
|
|
2024-08-04 04:20:16 +00:00
|
|
|
let
|
|
|
|
name = "node-red";
|
|
|
|
entrypoint = pkgs.writeShellApplication {
|
|
|
|
inherit name;
|
|
|
|
|
|
|
|
runtimeInputs = with pkgs; with nodePackages; [
|
|
|
|
node-red
|
|
|
|
ungoogled-chromium
|
|
|
|
];
|
|
|
|
|
|
|
|
text = ''
|
|
|
|
node-red
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
in pkgs.dockerTools.streamLayeredImage {
|
|
|
|
inherit name;
|
|
|
|
config.Cmd = [ "${entrypoint}/bin/entrypoint" ];
|
2024-08-04 00:48:21 +00:00
|
|
|
}
|