归档 0.8 版本,增加离线阅读

This commit is contained in:
khs1994
2017-11-22 22:06:02 +08:00
parent c8260780d9
commit 2535813859
7 changed files with 111 additions and 0 deletions

26
.travis/Dockerfile Normal file
View File

@@ -0,0 +1,26 @@
FROM node:9-alpine
ENV TZ=Asia/Shanghai
WORKDIR /srv/gitbook
COPY book.json book.json
COPY docker-entrypoint.sh /usr/local/bin/
RUN apk add --no-cache \
tzdata \
&& npm install -g gitbook-cli \
&& gitbook install \
&& ln -s /usr/local/bin/docker-entrypoint.sh / \
&& rm -rf /root/.npm /tmp/*
EXPOSE 4000
VOLUME /srv/gitbook-src
WORKDIR /srv/gitbook-src
ENTRYPOINT ["docker-entrypoint.sh"]
CMD server