Ai
1 Star 0 Fork 7

liuyanglinux/website-docs

forked from openLooKeng/website-docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 567 Bytes
一键复制 编辑 原始数据 按行查看 历史
liuyanglinux 提交于 2023-12-21 09:16 +08:00 . update Dockerfile.
FROM swr.cn-north-4.myhuaweicloud.com/opensourceway/openeuler/nginx-hugo:1.24.0-22.03-lts-sp1-0.104.3
COPY . /src/website/
RUN cd /src/website/ \
&& hugo -b / --minify \
&& cp -r /src/website/public/* /usr/share/nginx/html/ \
&& chown nginx:nginx -R /usr/share/nginx/html
COPY ./deploy/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/liuyanglinux/website-docs.git
git@gitee.com:liuyanglinux/website-docs.git
liuyanglinux
website-docs
website-docs
master

搜索帮助