change to writeShellApplication #1
20
docker.nix
20
docker.nix
|
@ -1,6 +1,20 @@
|
||||||
{ config, pkgs, ...}:
|
{ config, pkgs, ...}:
|
||||||
|
|
||||||
pkgs.dockerTools.streamLayeredImage {
|
let
|
||||||
name = "node-red";
|
name = "node-red";
|
||||||
config.Cmd = [ "${pkgs.nodePackages.node-red}/bin/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" ];
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,10 +11,6 @@
|
||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
streamImage = pkgs.callPackage (import ./docker.nix) {};
|
streamImage = pkgs.callPackage (import ./docker.nix) {};
|
||||||
#pkgs.dockerTools.streamLayeredImage {
|
|
||||||
# name = "node-red";
|
|
||||||
# config.Cmd = [ "${pkgs.nodePackages.node-red}/bin/node-red" ];
|
|
||||||
#};
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user