How to build a docker container with nix? : <p>I have a Nix package I'd like to bundle up into a docker container.</p>

<p>Specifically, I want to use Nix as a more expressive alternative to a <code>Dockerfile</code> to have faster (non-linear) image builds.</p>

<p>I've found documentation on <a href="https://nixos.org/nixpkgs/manual/#ssec-pkgs-dockerTools-buildImage" rel="noreferrer"><code>dockerTools.buildImage</code></a> but I'd like to have a minimal working example, and I'd also like to know what ends up being in the docker container.</p>
