Sign inSign up

stilleshan/gitbook

By stilleshan

Updated over 4 years ago

Image
0

1.2K

stilleshan/gitbook repository overview

gitbook

GitHub stilleshan/dockerfiles
Docker stilleshan/gitbook

docker image support for X86 and ARM

简介

gitbook for docker, 方便本地使用 docker 来启动服务编写文档.

使用

初始化 init
docker run --rm -v "$PWD:/gitbook" -p 4000:4000 stilleshan/gitbook gitbook init
# 初始化当前目录
服务 serve
docker run --rm -v "$PWD:/gitbook" -p 4000:4000 stilleshan/gitbook gitbook serve
# 启动 serve 服务

访问http://localhost:4000

构建 build
docker run --rm -v "$PWD:/gitbook" -p 4000:4000 stilleshan/gitbook gitbook build
# 打包构建

参考

Tag summary

Content type

Image

Digest

Size

102 MB

Last updated

over 4 years ago

docker pull stilleshan/gitbook