瀏覽代碼

Use hugo base image

master
Chris Smith 5 年之前
父節點
當前提交
e4ad4905d4
共有 1 個檔案被更改,包括 1 行新增11 行删除
  1. 1
    11
      Dockerfile

+ 1
- 11
Dockerfile 查看文件

@@ -2,17 +2,7 @@
2 2
 ## Step 1 - add content and build with Hugo
3 3
 ##
4 4
 
5
-FROM debian:stretch as hugo
6
-RUN apt-get -qq update \
7
-	&& DEBIAN_FRONTEND=noninteractive apt-get -qq install -y --no-install-recommends python-pygments git ca-certificates asciidoc \
8
-	&& rm -rf /var/lib/apt/lists/*
9
-
10
-ENV HUGO_VERSION 0.53
11
-ENV HUGO_BINARY hugo_${HUGO_VERSION}_Linux-64bit.deb
12
-
13
-ADD https://github.com/spf13/hugo/releases/download/v${HUGO_VERSION}/${HUGO_BINARY} /tmp/hugo.deb
14
-RUN dpkg -i /tmp/hugo.deb \
15
-	&& rm /tmp/hugo.deb
5
+FROM r.c5h.io/hugo as hugo
16 6
 
17 7
 ADD site /tmp/site
18 8
 RUN hugo -b https://www.chameth.com/ -v -s /tmp/site -d /tmp/hugo && \

Loading…
取消
儲存