Create a Docker container that creates a Docker container
This GitHub repository belongs with the following blog post:
http://blog.xebia.com/2014/07/04/create-the-smallest-possible-docker-container/
You can use the Dockerfile inside this repository to create a container that creates a Docker image from scratch, compiles a Docker source file and places it inside the newly made container.