Provide gitbook commands in a docker image to build and deploy your docs
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

docker-gitbook Circle CI


A gitbook docker image to allow you to build and publish your documentation.

Available software:

  • gitbook with pdf option thanks to calibre
  • calibre required by gitbook for pdf generation
  • npm required for gitbook
  • lftp to upload your docs on a distant site
  • git to get your doc source


To build your documentation in a specific directory:

docker run -v /my_gitbook:/gitbook amontaigu/gitbook gitbook build docs html

To go inside the container an play with available commands in a shell:

docker run -it --rm --entrypoint=/bin/sh amontaigu/gitbook

References and thanks