wip
All checks were successful
Build and push nixos-based docker container / build (push) Successful in 1m6s

This commit is contained in:
James Andariese 2024-08-03 23:02:49 -05:00
parent 2d0228de00
commit cf51eb4473
2 changed files with 17 additions and 7 deletions

View File

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

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
{