-
-
Save astanet/c10e0d00a0fcdd0fa4887b5ba4ebc638 to your computer and use it in GitHub Desktop.
Install and verfiy Hugo in Docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#**************** HUGO ********************************************* | |
# from https://arubacao.com/install-verify-gohugo-dockerfile/ | |
ENV HUGO_VERSION="0.75.1" | |
RUN set -ex \ | |
&& curl -fsSLO --compressed "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz" \ | |
&& curl -fsSLO --compressed "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_checksums.txt" \ | |
&& grep " hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz\$" hugo_${HUGO_VERSION}_checksums.txt | sha256sum -c - \ | |
&& tar -xzf hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz -C /usr/local/bin/ \ | |
&& rm hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz \ | |
&& rm hugo_${HUGO_VERSION}_checksums.txt \ | |
&& hugo version | |
#**************** END HUGO ********************************************* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment