1
mirror of https://github.com/jakejarvis/hugo-docker.git synced 2025-07-01 22:46:41 -04:00

Compare commits

...

2 Commits

Author SHA1 Message Date
5bbdb9ba12 Hugo v0.96.0 2022-03-26 13:36:59 -04:00
b69006cb54 Hugo v0.95.0 (with fixes for Go 1.18) 2022-03-16 21:25:36 -04:00

View File

@ -1,10 +1,10 @@
# the following version can be overridden at image build time with --build-arg # the following version can be overridden at image build time with --build-arg
ARG HUGO_VERSION=0.94.2 ARG HUGO_VERSION=0.96.0
# remove/comment the following line completely to compile vanilla Hugo: # remove/comment the following line completely to compile vanilla Hugo:
ARG HUGO_BUILD_TAGS=extended ARG HUGO_BUILD_TAGS=extended
# Hugo >= v0.81.0 requires Go 1.16+ to build # Hugo >= v0.81.0 requires Go 1.16+ to build
ARG GO_VERSION=1.17 ARG GO_VERSION=1.18
ARG ALPINE_VERSION=3.15 ARG ALPINE_VERSION=3.15
# --- # ---
@ -29,7 +29,7 @@ RUN apk add --update --no-cache \
g++ \ g++ \
musl-dev \ musl-dev \
git && \ git && \
go get github.com/magefile/mage go install github.com/magefile/mage@latest
# clone source from Git repo: # clone source from Git repo:
RUN git clone \ RUN git clone \
@ -42,7 +42,7 @@ RUN mage -v hugo && mage install
# fix potential stack size problems on Alpine # fix potential stack size problems on Alpine
# https://github.com/microsoft/vscode-dev-containers/blob/fb63f7e016877e13535d4116b458d8f28012e87f/containers/hugo/.devcontainer/Dockerfile#L19 # https://github.com/microsoft/vscode-dev-containers/blob/fb63f7e016877e13535d4116b458d8f28012e87f/containers/hugo/.devcontainer/Dockerfile#L19
RUN go get github.com/yaegashi/muslstack && \ RUN go install github.com/yaegashi/muslstack@latest && \
muslstack -s 0x800000 /go/bin/hugo muslstack -s 0x800000 /go/bin/hugo
# --- # ---