11 Star 106 Fork 28

liuhll/silky

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile.docs 500 Bytes
一键复制 编辑 原始数据 按行查看 历史
liuhll 提交于 2021-07-04 22:13 . 更新dockerfile打包镜像文件
FROM node:12.13.0 as build
LABEL maintainer="[email protected]"
WORKDIR /usr/src/app
COPY ./package.json .
COPY ./docs ./docs
RUN npm config set registry https://registry.npm.taobao.org
RUN npm install && \
npm run docs:build
FROM nginx:latest
LABEL maintainer="[email protected]"
WORKDIR /usr/app
COPY --from=build /usr/src/app/docs/.vuepress/dist .
COPY --from=build /usr/src/app/docs/nginx-docs.conf /etc/nginx/nginx.conf
ENV HOST 0.0.0.0
EXPOSE 80
ENTRYPOINT ["nginx","-g","daemon off;"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/liuhll2/silky.git
[email protected]:liuhll2/silky.git
liuhll2
silky
silky
main

搜索帮助