arion-base: buildLayeredImage -> buildImage to avoid build error

buildLayeredImage doesn't work when the number of nix store layers is 0.
This may be fixed by pull https://github.com/NixOS/nixpkgs/pull/80921/files
but meanwhile, plain buildImage will do the job.
This commit is contained in:
Robert Hensing 2020-02-23 23:51:14 +01:00
parent 77b89cb424
commit 1778d76117

View file

@ -10,7 +10,7 @@ let
tag = lib.head (lib.strings.splitString "-" (baseNameOf builtImage.outPath)); tag = lib.head (lib.strings.splitString "-" (baseNameOf builtImage.outPath));
name = "arion-base"; name = "arion-base";
builtImage = pkgs.dockerTools.buildLayeredImage { builtImage = pkgs.dockerTools.buildImage {
inherit name; inherit name;
contents = pkgs.runCommand "minimal-contents" {} '' contents = pkgs.runCommand "minimal-contents" {} ''
mkdir -p $out/bin $out/usr/bin mkdir -p $out/bin $out/usr/bin