1 Star 0 Fork 3

gaosongstu/knowledge

forked from gocoder/knowledge 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 608 Bytes
一键复制 编辑 原始数据 按行查看 历史
cl.liu@wisetimes.cn 提交于 2021-07-07 11:06 +08:00 . feat(docker): docker打开支持
FROM centos:centos7.9.2009 as gitbooke
RUN yum install -y epel-release
RUN yum install -y npm.x86_64 && npm config set registry https://registry.npm.taobao.org
RUN npm install gitbook-cli -g
ENTRYPOINT ["gitbook", "serve", "--port 80"]
EXPOSE 80
WORKDIR /opt/doc/
RUN npm config set registry=http://registry.npm.taobao.org -g
RUN gitbook install
FROM gitbooke as doc
WORKDIR /opt/doc/
ADD book.json /opt/doc/
ADD package.json /opt/doc/
RUN npm config set registry=http://registry.npm.taobao.org
RUN gitbook install
FROM doc
WORKDIR /opt/doc/
COPY . /opt/doc/
ENTRYPOINT ["gitbook", "serve"]
EXPOSE 4000
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/gaosongstu/knowledge.git
git@gitee.com:gaosongstu/knowledge.git
gaosongstu
knowledge
knowledge
master

搜索帮助