Build the builder
$ cd builder && docker build -t nix-build-pack --rm=true --force-rm=true --no-cache=true .
Run the builder to extract tarball
$ docker run --rm -v `pwd`:/opt/ nix-build-pack /opt/pyramid.nix
Build the final container with the created tarball
$ docker build -t pyramid --rm=true --force-rm=true --no-cache=true .
Use the built container
$ docker run --rm -v `pwd`:/opt/ -P pyramid /opt/hello_world.py
- Can a docker image be created directly from the tarball? (Even without the current BusyBox base image...)
- Can tarballed Nix-dependencies optimized better? (Why Python requires GCC?)