29 Star 18 Fork 235

openGauss/blog

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
Dockerfile 627 Bytes
Copy Edit Raw Blame History
zhangxubo authored 2021-05-12 11:23 +08:00 . update nginx version
FROM nginx:1.20.0
RUN apt-get update && \
apt install curl -y && \
apt-get install git -y
ENV HUGO_VERSION=0.56.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/
COPY . /src/blog
RUN cd /src/blog && /usr/local/bin/hugo -b / && \
cp -rf /src/blog/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;"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/opengauss/blog.git
git@gitee.com:opengauss/blog.git
opengauss
blog
blog
1cedf43ad13b933d29b88363a7f85ca3bb113012

Search