1 Star 0 Fork 115

fengchunsong/website-v2

forked from openEuler/website-v2
关闭
 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webui-dockerfile-ru 966 Bytes
一键复制 编辑 原始数据 按行查看 历史
ouchengle 提交于 2021-10-28 17:01 . fix node17 ERR_OSSL_EVP_UNSUPPORTED
FROM node:alpine as Builder
MAINTAINER zhangxiaopan<zhangxiaopan2@huawei.com>
RUN mkdir -p /home/openeuler/web
WORKDIR /home/openeuler/web
COPY . /home/openeuler/web
RUN rm -rf ./docs/en
RUN rm -rf ./docs/zh
RUN cp ./docs/.vuepress/config.ru.js ./docs/.vuepress/config.js
RUN npm install
RUN mv /home/openeuler/web/script/update-build-script.js /home/openeuler/web/node_modules/@vuepress/core/lib/node/build/index.js
RUN mv /home/openeuler/web/script/add-worker-script.js /home/openeuler/web/node_modules/@vuepress/core/lib/node/build/worker.js
RUN node --openssl-legacy-provider --max_old_space_size=9216 /home/openeuler/web/node_modules/vuepress/cli.js build docs
FROM nginx:1.20.0
COPY --from=Builder /home/openeuler/web/docs/.vuepress/dist/ /usr/share/nginx/html/
RUN chmod -R 755 /usr/share/nginx/html
COPY ./deploy/nginx/nginx.ru.conf /etc/nginx/nginx.conf
ENV RUN_USER nginx
ENV RUN_GROUP nginx
EXPOSE 8080
ENTRYPOINT ["nginx", "-g", "daemon off;"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/fengchunsong/website-v2.git
git@gitee.com:fengchunsong/website-v2.git
fengchunsong
website-v2
website-v2
master

搜索帮助