1 Star 0 Fork 107

chopupu/openEuler-portal

forked from openEuler/openEuler-portal 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 743 Bytes
一键复制 编辑 原始数据 按行查看 历史
FROM gplane/pnpm as Builder
RUN mkdir -p /home/openeuler/web
WORKDIR /home/openeuler/web
COPY . /home/openeuler/web
RUN rm -rf ./app/ru
RUN pnpm install
RUN pnpm sitemap:zh
RUN pnpm sitemap:en
RUN pnpm build
FROM swr.cn-north-4.myhuaweicloud.com/opensourceway/openeuler/nginx:1.22.0-22.03-lts
COPY --from=Builder /home/openeuler/web/app/.vitepress/dist /usr/share/nginx/html/
RUN chmod -R 755 /usr/share/nginx/html
RUN rm -rf /usr/share/nginx/html/ru
COPY ./deploy/nginx/nginx.conf /etc/nginx/nginx.conf
RUN touch /var/run/nginx.pid \
&& chown -R nginx:nginx /var/log/nginx \
&& chown -R nginx:nginx /var/run/nginx.pid \
&& chown -R nginx:nginx /etc/nginx
EXPOSE 8080
USER nginx
ENTRYPOINT ["nginx", "-g", "daemon off;"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/chopupu/openEuler-portal.git
[email protected]:chopupu/openEuler-portal.git
chopupu
openEuler-portal
openEuler-portal
master

搜索帮助