1 Star 0 Fork 45

张晨璐/website_3

forked from openLooKeng/website 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 854 Bytes
一键复制 编辑 原始数据 按行查看 历史
FROM ubuntu:16.04 as builder
MAINTAINER Edward Lee <freesky.edward@gmail.com>
RUN apt -y update && apt -y install curl
COPY . /src/website/
ENV HUGO_VERSION=0.73.0
RUN mkdir -p /usr/local/src && \
cd /usr/local/src && \
curl -L https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz | tar -xz && \
mv hugo /usr/local/bin/
RUN cd /src/website/ && hugo -b / --minify
FROM swr.cn-north-4.myhuaweicloud.com/opensourceway/openeuler/nginx:1.16.1-20.03-lts-sp2
COPY --from=builder /src/website/public/ /usr/share/nginx/html/
RUN chown nginx:nginx -R /usr/share/nginx/html
COPY ./deploy/nginx/nginx.conf /etc/nginx/nginx.conf
COPY ./deploy/nginx/default.conf /etc/nginx/conf.d/
ENV RUN_USER nginx
ENV RUN_GROUP nginx
EXPOSE 80
ENTRYPOINT nginx -g "daemon off;"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhang-chenlu8888/website_3.git
git@gitee.com:zhang-chenlu8888/website_3.git
zhang-chenlu8888
website_3
website_3
master

搜索帮助