wip
All checks were successful
Build and push nixos-based docker container / build (push) Successful in 1m6s
All checks were successful
Build and push nixos-based docker container / build (push) Successful in 1m6s
This commit is contained in:
parent
2d0228de00
commit
cf51eb4473
20
docker.nix
20
docker.nix
|
@ -1,6 +1,20 @@
|
|||
{ config, pkgs, ...}:
|
||||
|
||||
pkgs.dockerTools.streamLayeredImage {
|
||||
name = "node-red";
|
||||
config.Cmd = [ "${pkgs.nodePackages.node-red}/bin/node-red" ];
|
||||
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" ];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user