James Andariese
cf51eb4473
All checks were successful
Build and push nixos-based docker container / build (push) Successful in 1m6s
21 lines
349 B
Nix
21 lines
349 B
Nix
{ 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" ];
|
|
}
|