1 Star 0 Fork 45

Jiwen/website

forked from openLooKeng/website 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 783 Bytes
一键复制 编辑 原始数据 按行查看 历史
张小盼 提交于 2021-05-08 17:14 . nginx version update
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 nginx:1.20.0
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;"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jiwenyu0531/website.git
git@gitee.com:jiwenyu0531/website.git
jiwenyu0531
website
website
master

搜索帮助