diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8ad8e4f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM kplcloud/gitbook:v3.2.3 AS build_env + +MAINTAINER dudulu + +COPY ./ /opt/gitbook + +WORKDIR /opt/gitbook + +RUN gitbook build + +FROM nginx:1.17.3-alpine + +COPY --from=build_env /opt/gitbook/_book/ /usr/share/nginx/html/ + +CMD ["nginx", "-g", "daemon off;"]