-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (26 loc) · 1.02 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM joepeak/node
MAINTAINER Joepeak <johe.heng@gmail.com>
ARG VERSION=3.2.3
LABEL version=$VERSION
# install fonts Noto Sans CJK SC for Simplified Chinese
#RUN wget -P /raw_fonts https://noto-website-2.storage.googleapis.com/pkgs/NotoSansCJKsc-hinted.zip && \
# cd /raw_fonts && \
# mkdir /usr/share/fonts/noto && \
# unzip -o NotoSansCJKsc-hinted.zip && \
# mv -t /usr/share/fonts/noto *-DemiLight.otf *-Bold.otf *-Black.otf && \
# rm -r /raw_fonts && \
# fc-cache -f -v
## Install Calibre
#RUN echo "deb http://http.debian.net/debian jessie-backports main" > /etc/apt/sources.list.d/backports.list && \
# apt-get update && \
# apt-get install -y --no-install-recommends calibre fonts-noto fonts-noto-cjk locales-all && \
# rm -rf /var/lib/apt/lists/*
#npm cache clear &&\
RUN npm install --global gitbook-cli ebook-convert &&\
gitbook fetch ${VERSION} &&\
rm -rf /tmp/*
ENV BOOKDIR=/srv/gitbook HTMLDIR=/srv/html
VOLUME $BOOKDIR $HTMLDIR
WORKDIR $BOOKDIR
EXPOSE 4000 35729
CMD ["gitbook", "serve"]