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/
Update (11 May 2017): The image creation process is greatly simplified with the introduction of Multi-Stage Builds. See my new blog “Simplify the Smallest Possible Docker Image”
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.