wip
Some checks failed
Build and push nixos-based docker container / build (push) Failing after 2s

This commit is contained in:
James Andariese 2024-08-03 23:02:49 -05:00
parent 2d0228de00
commit 5e27552d1a
2 changed files with 18 additions and 6 deletions

View File

@ -1,6 +1,22 @@
{ config, pkgs, ...}:
let name = "node-red"; in
pkgs.dockerTools.streamLayeredImage {
name = "node-red";
config.Cmd = [ "${pkgs.nodePackages.node-red}/bin/node-red" ];
inherit name;
contents = [
pkgs.nodePackages.node-red
]
config.Cmd = [ pkgs.writeShellApplication {
inherit name;
runtimeInputs = with pkgs; with nodePackages; [
node-red
ungoogled-chromium
];
text = ''
node-red
'';
];
}

View File

@ -11,10 +11,6 @@
lib = nixpkgs.lib;
pkgs = nixpkgs.legacyPackages.${system};
streamImage = pkgs.callPackage (import ./docker.nix) {};
#pkgs.dockerTools.streamLayeredImage {
# name = "node-red";
# config.Cmd = [ "${pkgs.nodePackages.node-red}/bin/node-red" ];
#};
in
{