From 7cb0d2369fdfec0cb8c4777b257e3a3d2d8d5603 Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Mon, 29 Jul 2019 15:19:13 +0900 Subject: [PATCH] change: install from binary --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index f4894fb..abee9ce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,10 +10,10 @@ LABEL "homepage"="https://github.com/peaceiris/actions-hugo" LABEL "maintainer"="peaceiris" ENV HUGO_VERSION='0.56.1' -ENV HUGO_URL='https://github.com/gohugoio/hugo.git' - -RUN git clone ${HUGO_URL} -b v${HUGO_VERSION} --depth 1 /hugo && \ - cd /hugo && \ - go install --tags extended +ENV HUGO_NAME="hugo_extended_${HUGO_VERSION}_Linux-64bit" +ENV HUGO_URL="https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/${HUGO_NAME}.tar.gz" +WORKDIR /hugo +RUN wget "${HUGO_URL}" && \ + tar -zxvf "${HUGO_NAME}.tar.gz" ENTRYPOINT [ "/go/bin/hugo" ]