docker-node-red/docker.nix

21 lines
349 B
Nix
Raw Normal View History

2024-08-04 00:48:21 +00:00
{ config, pkgs, ...}:
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
}