change: install from binary

This commit is contained in:
peaceiris 2019-07-29 15:19:13 +09:00
parent 09ca2911f5
commit 7cb0d2369f

View file

@ -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" ]