73 Star 91 Fork 71

openEuler/nestos-website

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 958 Bytes
一键复制 编辑 原始数据 按行查看 历史
lauk 提交于 2022-09-29 10:15 . update Dockerfile.
FROM openeuler/openeuler:22.03-lts as Builder
MAINTAINER duyiwei<duyiwei@kylinos.cn>
RUN mkdir -p /home/openeuler/web
WORKDIR /home/openeuler/web
COPY view /home/openeuler/web
RUN curl https://nodejs.org/dist/v16.4.0/node-v16.4.0-linux-x64.tar.gz -o node-v16.4.0-linux-x64.tar.gz && \
tar -xvf node-v16.4.0-linux-x64.tar.gz && \
ln -s /home/openeuler/web/node-v16.4.0-linux-x64/bin/node /usr/local/bin/node && \
ln -s /home/openeuler/web/node-v16.4.0-linux-x64/bin/npm /usr/local/bin/npm && \
npm install -g npm@8.19.2 && \
npm install && \
npm run build
FROM openeuler/openeuler:22.03-lts
MAINTAINER duyiwei<duyiwei@kylinos.cn>
RUN yum install nginx -y && yum clean all
COPY --from=Builder /home/openeuler/web/dist/ /usr/share/nginx/html/
RUN chmod -R 777 /usr/share/nginx/html && \
sed -i '131c PASS_MAX_DAYS 18' /etc/login.defs && \
sed -i '2,$s/99999/180/g' /etc/shadow
ENTRYPOINT ["nginx", "-g", "daemon off;"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openeuler/nestos-website.git
git@gitee.com:openeuler/nestos-website.git
openeuler
nestos-website
nestos-website
master

搜索帮助