Open
Description
I'm trying to define some simple containers:
containers.blue = {
name = "blue";
copyToRoot = pkgs.buildEnv {
name = "image-root";
paths = [ blue ];
pathsToLink = [ "/bin" ];
};
entrypoint = [ "/env/bin/blue" ];
};
blue
being a haskell.nix derivation
It creates a first layer with my derivation (~420MiB) and adds a layer with many things (coreutils-full, bashInteractive, su, etc.) which weight 15 GiB.
We should be able to passe the final derivation, or to disable extra layers.