wip
All checks were successful
Build and push nixos-based docker container / build (push) Successful in 13s

This commit is contained in:
James Andariese 2024-08-04 01:47:08 -05:00
parent 27588a1d35
commit f4c102f3d4

View File

@ -2,19 +2,28 @@
let
name = "node-red";
packages =
with pkgs;
with nodePackages;
[
bash
coreutils
nodejs
node-red
#ungoogled-chromium
];
entrypoint = pkgs.writeShellApplication {
name = "entrypoint";
runtimeInputs = with pkgs; with nodePackages; [
node-red
#ungoogled-chromium
];
runtimeInputs = packages;
text = ''
sleep 120
node-red -u "''${DATA-/data}" -s "''${SETTINGS-/data/settings.js}"
'';
};
in pkgs.dockerTools.streamLayeredImage {
inherit name;
contents = packages;
config.Cmd = [ "${entrypoint}/bin/entrypoint" ];
}