29 Star 144 Fork 38

大胃王/ElasticSearch-Java API中文翻译

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Dockerfile 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
大胃王 提交于 2019-05-22 14:31 . update
FROM asciidoctor/docker-asciidoctor:latest as builder
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
WORKDIR /app
ENV VERSION=6.8.0
ENV DOC_PATH=/app/cn
ENV BASE_PATH=/app/base
ENV OUT_PATH=/out
COPY asciidoc/base $BASE_PATH
COPY asciidoc/cn $DOC_PATH
RUN asciidoctor -a stylesheet=$BASE_PATH/css.css -o $OUT_PATH/index.html $DOC_PATH/$VERSION/index.asciidoc && \
rm -rf $OUT_PATH/images && \
mkdir $OUT_PATH/images && \
cp -r $BASE_PATH/images $OUT_PATH/images
FROM nginx:alpine
RUN rm -rf /usr/share/nginx/html/*
COPY --from=builder /out/index.html /usr/share/nginx/html
COPY --from=builder /out/images /usr/share/nginx/html
CMD [ "nginx", "-g", "daemon off;"]
#COPY framework ./framework
#COPY base ./base
#RUN asciidoctor -a stylesheet=../base/css.css -o ./index.html ./framework/index.adoc
#
#FROM nginx:alpine
#RUN rm -rf /usr/share/nginx/html/*
#COPY --from=builder /app/index.html /usr/share/nginx/html
#COPY ./framework/image /usr/share/nginx/html/image
#
#CMD [ "nginx", "-g", "daemon off;"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/consolelog/chinese_translation_of_elasticsearchjavaapi.git
git@gitee.com:consolelog/chinese_translation_of_elasticsearchjavaapi.git
consolelog
chinese_translation_of_elasticsearchjavaapi
ElasticSearch-Java API中文翻译
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385