Skip to content

Create books with SVG files #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
FROM node:6-slim
FROM node:11.2

ADD docker-provision.sh /tmp/
RUN cd /tmp/ && sh docker-provision.sh
RUN apt update && apt install -y -qq wget curl libfontconfig libgl1-mesa-dev libxrender-dev libxcomposite-dev python sudo \
gconf-service libasound2 libatk1.0-0 libcairo2 libcups2 libfontconfig1 libgdk-pixbuf2.0-0 \
libgtk-3-0 libnspr4 libpango-1.0-0 libxss1 fonts-liberation libappindicator3-1 libnss3 \
lsb-release xdg-utils fonts-droid-fallback
RUN wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sh /dev/stdin

RUN npm install --unsafe-perm -g [email protected] svgexport
RUN gitbook install
WORKDIR /docs

# run GitBook when the container starts
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ This image can be used to build books with the GitBook CLI.

To run gitbook with the current directory mounted to `/docs`:

$ docker run -ti --rm -v `pwd`:/docs humangeo/gitbook <path to your book>
$ docker run -ti --rm -v `pwd`:/docs shrmrf/gitbook-docker <path to your book>


### Use Case #2: Building a PDF

$ docker run -ti --rm -v `pwd`:/docs humangeo/gitbook pdf <path to your book>
$ docker run -ti --rm -v `pwd`:/docs shrmrf/gitbook-docker pdf <path to your book>

### Acknowledgements
This is just a blatant fork off of humangeo/gitbook-docker. Thanks humangeo :)
36 changes: 0 additions & 36 deletions docker-provision.sh

This file was deleted.