-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
34 lines (25 loc) · 1017 Bytes
/
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
FROM node:6-slim
ARG VERSION=3.2.3
LABEL version=$VERSION
LABEL maintainer="[email protected]"
RUN mkdir -p /usr/share/man/man1 && \
(echo "deb http://http.debian.net/debian jessie-backports main" > /etc/apt/sources.list.d/backports.list) && \
apt-get update -y && \
apt-get install -t jessie-backports openjdk-8-jdk -y &&\
apt-get install -y python\
python-dev python-pip python-virtualenv libgl1-mesa-glx libxcomposite1\
git calibre graphviz && \
apt-get autoremove -y &&\
npm install --global gitbook-cli gitbook-pdfgen svgexport &&\
apt-get clean && rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/*
# install fonts
RUN apt-get update -y &&\
apt-get install -y fonts-ipafont fonts-ipaexfont fonts-noto fonts-noto-cjk &&\
apt-get clean && rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/*
# for windows environment
RUN npm config set bin-links false
RUN gitbook fetch ${VERSION}
EXPOSE 4000
RUN mkdir /book
WORKDIR /book
CMD ["gitbook","--help"]