This is the entire source code for the build system of the Discovering Docker book.
It is based on the ubermuda/pandoc-ebook
base image:
See http://geoffrey.io/a-base-image-to-build-ebooks.html for more details on this base image.
Here's an overview of my repository's file tree:
.
├── Makefile
└── build
├── Dockerfile
└── build.sh
And it is used like this:
$ make build # builds the building image
$ make # builds the english (default) version of the book
$ LANG=fr make # builds the french version of the book