nixpkgs/pkgs/dockerImage.nix

8 lines
157 B
Nix

{ pkgs ? import <nixpkgs> }:
attrs:
let
default = { config.WorkingDir = "/"; };
input = (default // attrs);
in pkgs.dockerTools.buildLayeredImage input