Skip to content

Commit 85bc315

Browse files
authored
Create Dockerfile
1 parent 00f39c7 commit 85bc315

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM kplcloud/gitbook:v3.2.3 AS build_env
2+
3+
MAINTAINER dudulu <[email protected]>
4+
5+
COPY ./ /opt/gitbook
6+
7+
WORKDIR /opt/gitbook
8+
9+
RUN gitbook build
10+
11+
FROM nginx:1.17.3-alpine
12+
13+
COPY --from=build_env /opt/gitbook/_book/ /usr/share/nginx/html/
14+
15+
CMD ["nginx", "-g", "daemon off;"]

0 commit comments

Comments
 (0)