2 Star 4 Fork 1

opensourceway / opensourceway

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 688 Bytes
一键复制 编辑 原始数据 按行查看 历史
freesky-edward 提交于 2020-04-08 16:43 . Add dockerfile
FROM nginx
MAINTAINER Edward Lee <freesky.edward@gmail.com>
RUN apt-get update && \
apt install curl -y && \
apt-get install git -y
ENV HUGO_VERSION=0.68.3
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 mkdir -p /src/source/
COPY . /src/source/
WORKDIR /src/source/
RUN /usr/local/bin/hugo -b / && \
cp -rf /src/source/public/* /usr/share/nginx/html/ && \
chmod -R 755 /usr/share/nginx/html
ENV RUN_USER nginx
ENV RUN_GROUP nginx
EXPOSE 80
ENTRYPOINT nginx -g "daemon off;"
1
https://gitee.com/opensourceway/opensourceway.git
git@gitee.com:opensourceway/opensourceway.git
opensourceway
opensourceway
opensourceway
master

搜索帮助