dockerTools.buildLayeredImage: tweak formatting on contentsEnv
This commit is contained in:
parent
e1c6965beb
commit
f6d75f550e
1 changed files with 6 additions and 1 deletions
|
@ -536,7 +536,12 @@ rec {
|
|||
}:
|
||||
let
|
||||
baseName = baseNameOf name;
|
||||
contentsEnv = symlinkJoin { name = "bulk-layers"; paths = (if builtins.isList contents then contents else [ contents ]); };
|
||||
contentsEnv = symlinkJoin {
|
||||
name = "bulk-layers";
|
||||
paths = if builtins.isList contents
|
||||
then contents
|
||||
else [ contents ];
|
||||
};
|
||||
|
||||
configJson = let
|
||||
pure = writeText "${baseName}-config.json" (builtins.toJSON {
|
||||
|
|
Loading…
Reference in a new issue