docker/gitbook/Dockerfile
2016-02-02 23:28:24 +08:00

37 lines
621 B
Docker
Executable File

# Gitbook
# NAME: kennylee26/gitbook
# Pull base image.
FROM index.alauda.cn/kenny/node
#FROM kennylee26/node:5.1.1
ENV GIT_BOOK_VERSION="2.6.4"
ENV BOOKDIR /gitbook
# Basic Requirements
RUN \
apt-get update && \
apt-get install -y calibre
# install fonts
RUN apt-get install -y fonts-wqy-microhei
RUN cnpm install gitbook-cli -g && \
cnpm install svgexport -g
RUN gitbook versions:install $GIT_BOOK_VERSION
# install recommend plugins
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/*
VOLUME $BOOKDIR
WORKDIR $BOOKDIR
EXPOSE 4000
# Define default command.
ENTRYPOINT ["gitbook"]
CMD ["--help"]