FROM alpine:latest RUN apk add --no-cache go libc6-compat ARG HUGO_VERSION RUN wget "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz" && \ tar -xf "hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz" && \ mv ./hugo /usr/bin/hugo && \ rm -rf "hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz" CMD ["/usr/bin/hugo"]