forked from liquidity-network/template.achievement.network
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (30 loc) · 1019 Bytes
/
Dockerfile
File metadata and controls
40 lines (30 loc) · 1019 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
34
35
36
37
38
39
# ==================================================================================================
#
# Docker gitbook helper image
#
# Provide gitbook commands in a docker image to build and deploy your docs
#
# ==================================================================================================
# Base image, default node image
FROM node:slim
# Update locale to support unicode
ENV LANG C.UTF-8
# Environment configuration
ENV GITBOOK_VERSION="3.2.3"
USER root
# Install gitbook and lftp
RUN npm install --global gitbook-cli \
&& gitbook fetch ${GITBOOK_VERSION} \
&& npm cache clear --force \
&& apt-get update \
&& apt-get install --no-install-recommends --no-install-suggests -y git build-essential python3-pip lftp calibre \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/*
# Current directory configuration
WORKDIR /gitbook
# Volume for gitbook operations
VOLUME /gitbook
# Ports for serve command
EXPOSE 4000 35729
# Default cmd is version display
CMD /usr/local/bin/gitbook -V