-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathDockerfile.base
More file actions
executable file
·33 lines (29 loc) · 933 Bytes
/
Dockerfile.base
File metadata and controls
executable file
·33 lines (29 loc) · 933 Bytes
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
FROM node:10.16.3-alpine AS build_env
MAINTAINER dudulu <solacowa@gmail.com>
RUN npm config set registry https://registry.npm.taobao.org
RUN npm install -g gitbook-cli \
gitbook-plugin-mygitalk \
gitbook-plugin-github \
gitbook-plugin-highlight \
gitbook-plugin-search \
gitbook-plugin-copy-code-button \
gitbook-plugin-code \
gitbook-plugin-expandable-chapters \
gitbook-plugin-back-to-top-button \
gitbook-plugin-sharing-plus --registry=https://registry.npm.taobao.org
RUN mkdir -p /opt/gitbook
COPY ./README.md /opt/gitbook
COPY ./book.json /opt/gitbook
WORKDIR /opt/gitbook
RUN gitbook fetch 3.2.3
#RUN gitbook install mygitalk
#RUN gitbook install donate
#RUN gitbook install github
#RUN gitbook install copy-code-button
#RUN gitbook install code
#RUN gitbook install expandable-chapters
#RUN gitbook install back-to-top-button
#RUN gitbook install sharing-plus
RUN gitbook install .
RUN gitbook build
CMD ["bash"]