change: install from binary
This commit is contained in:
parent
09ca2911f5
commit
7cb0d2369f
1 changed files with 5 additions and 5 deletions
10
Dockerfile
10
Dockerfile
|
|
@ -10,10 +10,10 @@ LABEL "homepage"="https://github.com/peaceiris/actions-hugo"
|
||||||
LABEL "maintainer"="peaceiris"
|
LABEL "maintainer"="peaceiris"
|
||||||
|
|
||||||
ENV HUGO_VERSION='0.56.1'
|
ENV HUGO_VERSION='0.56.1'
|
||||||
ENV HUGO_URL='https://github.com/gohugoio/hugo.git'
|
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"
|
||||||
RUN git clone ${HUGO_URL} -b v${HUGO_VERSION} --depth 1 /hugo && \
|
WORKDIR /hugo
|
||||||
cd /hugo && \
|
RUN wget "${HUGO_URL}" && \
|
||||||
go install --tags extended
|
tar -zxvf "${HUGO_NAME}.tar.gz"
|
||||||
|
|
||||||
ENTRYPOINT [ "/go/bin/hugo" ]
|
ENTRYPOINT [ "/go/bin/hugo" ]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue