forked from mojaloop/mojaloop-business-docs
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgitbook.Dockerfile
31 lines (20 loc) · 826 Bytes
/
gitbook.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
########################
#### gitbook-builder ###
########################
FROM node:10.15-alpine as gitbook-builder
WORKDIR /opt/gitbook
COPY . /opt/gitbook
RUN apk add --no-cache -t build-dependencies openjdk8-jre git make gcc g++ python libtool autoconf automake graphviz ttf-droid ttf-droid-nonlatin curl
ENV PLANTUML_VERSION 1.2019.3
ENV LANG en_US.UTF-8
RUN curl -L https://sourceforge.net/projects/plantuml/files/plantuml.${PLANTUML_VERSION}.jar/download -o plantuml.jar
RUN npm install
########################
#### gitbook-server ####
########################
FROM node:10.15-alpine as gitbook-server
WORKDIR /opt/gitbook
COPY --from=gitbook-builder /opt/gitbook .
RUN apk add --no-cache -t build-dependencies git make gcc g++ python libtool autoconf automake
EXPOSE 8989
CMD npm run gitbook:serveNoReload