add dockerImage utility
This commit is contained in:
parent
bcbed34460
commit
37b64dd0d4
|
@ -9,7 +9,8 @@ let
|
||||||
|
|
||||||
self = {
|
self = {
|
||||||
# nix tools
|
# nix tools
|
||||||
dhallToNix = import ./dhallToNix.nix;
|
dhallToNix = import ./pkgs/dhallToNix.nix;
|
||||||
|
dockerImage = callPackage ./pkgs/dockerImage.nix { };
|
||||||
|
|
||||||
# other
|
# other
|
||||||
MoonPlus = callPackage ./pkgs/moonplus { };
|
MoonPlus = callPackage ./pkgs/moonplus { };
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
{ sources ? import ./nix/sources.nix, pkgs ? import sources.nixpkgs { } }:
|
||||||
|
|
||||||
|
attrs:
|
||||||
|
pkgs.dockerTools.buildLayeredImage {
|
||||||
|
config = {
|
||||||
|
WorkingDir = "/";
|
||||||
|
};
|
||||||
|
} // attrs
|
Loading…
Reference in New Issue