An open-sourced, minimal, extensible, customisable and self-updating GitBook image.
2.4K
An open-sourced, minimal, extensible, customisable and self-updating GitBook image.
This image is built upon a minimal alpine-node image and has been designed to be used in close-sourced environments through extension and customisation.
See this repository's README in the GitHub Repository for more information.
DockerfileCreate a Dockerfile with the following:
FROM zephinzer/alpine-node-gitbook:latest
COPY . /app
EXPOSE 4000/tcp
ENTRYPOINT ["gitbook", "serve"]
Then run:
docker build . -t angitbook_image
docker run -t -i -p 80:4000 --name angitbook_container angitbook_image
docker-composeCreate the docker-compose.yml file with the following:
version: "3"
services:
gitbook:
image: zephinzer/alpine-node-gitbook:latest
container_name: alpine-node-gitbook-with-docker-compose
working_dir: /app
entrypoint: "gitbook serve"
expose:
- "4000/tcp"
ports:
- "80:4000"
volumes:
- ./:/app
Then run:
docker-compose up
docker-compose and DockerfileCreate the docker-compose.yml file with the following:
version: "3"
services:
gitbook:
build: .
container_name: alpine-node-gitbook-with-docker-compose-and-build
working_dir: /app
entrypoint: "gitbook serve"
expose:
- "4000/tcp"
ports:
- "80:4000"
Create the Dockerfile with the following:
FROM zephinzer/alpine-node-gitbook:latest
COPY . /app
Then run:
docker-compose up
README: https://github.com/zephinzer/docker-image-alpine-node-gitbook/blob/master/README.md GitHub Repository: https://github.com/zephinzer/docker-image-alpine-node-gitbook Travis CI Pipeline: https://travis-ci.org/zephinzer/docker-image-alpine-node-gitbook
Content type
Image
Digest
Size
39.2 MB
Last updated
over 7 years ago
docker pull zephinzer/alpine-node-gitbook