Skip to content

Instantly share code, notes, and snippets.

@alan-camilo
Last active July 12, 2019 07:57
Show Gist options
  • Save alan-camilo/382a6d1b1f0629e09c780435f5ede96f to your computer and use it in GitHub Desktop.
Save alan-camilo/382a6d1b1f0629e09c780435f5ede96f to your computer and use it in GitHub Desktop.

Docker commands

Gitbook image

docker pull fellah/gitbook

Init a gitbook and run server

docker run -d --name gitbook -p 80:4000 -v $PATHTOPROJECT/gitbook/:/srv/gitbook fellah/gitbook

-d daemon -p port -v volume /srv/gitbook/ Default working directory for GitBook container

N.B. : $PATHTOPROJECT must be an absolute path

Rebuild the static website

docker container exec gitbook gitbook build . /srv/html

Links

https://github.com/Fellah/docker/tree/master/gitbook http://toolchain.gitbook.com/syntax/markdown.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment