A lightweight docker image used to build gitbooks that can then be used within an nginx container.
Use this example dockerfile to create an nginx image containing the build gitbook. You can then deploy this image behind a reverse nginx proxy.
FROM xigen/gitbook-builder as gitbook
COPY . /app
RUN /usr/local/bin/gitbook install && /usr/local/bin/gitbook build
# Use a smaller image for production
FROM nginx:alpine as nginx
COPY --from=gitbook /app/_book /usr/share/nginx/html
docker build --no-cache --pull -t xigen/gitbook-builder .
Automatic public builds are available on the docker hub. images are automatically built when updates are pushed to Github.
Content type
Image
Digest
Size
79 MB
Last updated
over 6 years ago
docker pull xigen/gitbook-builder