1 Star 0 Fork 45

qiaominna/website

forked from openLooKeng/website 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 729 Bytes
一键复制 编辑 原始数据 按行查看 历史
TommyLike 提交于 2020-11-30 10:45 . update Dockerfile.
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:latest
COPY --from=builder /src/website/public/ /usr/share/nginx/html/
RUN chown nginx:nginx -R /usr/share/nginx/html
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/qiaominna/website.git
git@gitee.com:qiaominna/website.git
qiaominna
website
website
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385