wip
All checks were successful
Build and push nixos-based docker container / build (push) Successful in 16s
All checks were successful
Build and push nixos-based docker container / build (push) Successful in 16s
This commit is contained in:
parent
27588a1d35
commit
b3605da099
16
docker.nix
16
docker.nix
|
@ -2,13 +2,20 @@
|
|||
|
||||
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 = ''
|
||||
node-red -u "''${DATA-/data}" -s "''${SETTINGS-/data/settings.js}"
|
||||
|
@ -16,5 +23,6 @@ entrypoint = pkgs.writeShellApplication {
|
|||
};
|
||||
in pkgs.dockerTools.streamLayeredImage {
|
||||
inherit name;
|
||||
contents = packages;
|
||||
config.Cmd = [ "${entrypoint}/bin/entrypoint" ];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user