docker-node-red/docker.nix
James Andariese cf51eb4473
All checks were successful
Build and push nixos-based docker container / build (push) Successful in 1m6s
wip
2024-08-03 23:14:59 -05:00

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" ];
}