gitbook-serve on docker
##Usage
Clone your gitbook project in /home/yourname/yourbook or anywhere, then run this command.
docker run -d -p 80:4000 -v /home/yourname/yourbook:/srv/gitbook joson/gitbook-serve
4000 – GitBook default service port.
35729 – Live reload server port.
/srv/gitbook – Default working directory for GitBook container.
Clone your gitbook project in /home/yourname/yourbook or anywhere, the output dir is /home/abc ,then run this command.
$ docker run -v /home/yourname/yourbook:/srv/gitbook -v /home/abc:/srv/html joson/gitbook-serve gitbook build . /srv/html
Content type
Image
Digest
Size
249.5 MB
Last updated
over 10 years ago
docker pull joson/gitbook-serve