docker-node-red/docker.nix
James Andariese 1943c907c8
All checks were successful
Build and push nixos-based docker container / build (push) Successful in 1m14s
Update flake lock / build (push) Successful in 3s
change to writeShellApplication (#1)
use writeShellApplication to enable the automatic setting of PATH for dependencies.

Reviewed-on: #1
2024-08-04 04:20:16 +00: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" ];
}