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

Compare commits

...

18 Commits

Author SHA1 Message Date
10103bce3b Hugo v0.102.1 2022-08-29 10:50:24 -04:00
fcb292357c Hugo v0.102.0 2022-08-28 16:24:46 -04:00
61fa24ed38 switch from mage to go build so go and alpine can be bumped 2022-07-29 13:44:08 -04:00
250387c4f1 Hugo v0.101.0 2022-06-16 07:25:39 -04:00
6e5386c78a Hugo v0.100.2 2022-06-08 17:54:57 -04:00
86af318435 Hugo v0.100.1 2022-06-01 17:14:47 -04:00
5bbac6174f Hugo v0.100.0 2022-05-31 17:09:32 -04:00
9fc7783e5a Hugo v0.99.1 2022-05-18 09:25:21 -04:00
4f26d81802 Hugo v0.99.0 2022-05-16 08:47:28 -04:00
de42257aa2 Hugo v0.98.0 2022-04-28 12:15:48 -04:00
e10c7362c7 Hugo v0.97.3 2022-04-18 17:24:14 -04:00
5bd125e947 Hugo v0.97.2 2022-04-17 11:48:20 -04:00
92aeed4a00 Hugo v0.97.1 2022-04-16 13:38:23 -04:00
23cd994860 Hugo v0.97.0 2022-04-14 09:16:05 -04:00
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
f0b59209e5 Hugo v0.94.2 2022-03-12 08:58:35 -05:00
061289816b Hugo v0.94.1 2022-03-11 12:04:03 -05:00

View File

@ -1,11 +1,11 @@
# the following version can be overridden at image build time with --build-arg
ARG HUGO_VERSION=0.94.0
ARG HUGO_VERSION=0.102.1
# remove/comment the following line completely to compile vanilla Hugo:
ARG HUGO_BUILD_TAGS=extended
# Hugo >= v0.81.0 requires Go 1.16+ to build
ARG GO_VERSION=1.17
ARG ALPINE_VERSION=3.15
ARG GO_VERSION=1.18
ARG ALPINE_VERSION=3.16
# ---
@ -28,8 +28,7 @@ RUN apk add --update --no-cache \
gcc \
g++ \
musl-dev \
git && \
go get github.com/magefile/mage
git
# clone source from Git repo:
RUN git clone \
@ -38,11 +37,13 @@ RUN git clone \
--depth 1 \
https://github.com/gohugoio/hugo.git ./
RUN mage -v hugo && mage install
# https://github.com/gohugoio/hugo/commit/241481931f5f5f2803cd4be519936b26d8648dfd
RUN go build -v -ldflags "-X github.com/gohugoio/hugo/common/hugo.vendorInfo=docker" -tags "$HUGO_BUILD_TAGS" && \
mv ./hugo /go/bin/hugo
# fix potential stack size problems on Alpine
# 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
# ---
@ -52,9 +53,9 @@ FROM alpine:${ALPINE_VERSION}
# renew global args from above & pin any dependency versions
ARG HUGO_VERSION
# https://github.com/jgm/pandoc/releases
ARG PANDOC_VERSION=2.17.1.1
ARG PANDOC_VERSION=2.18
# https://github.com/sass/dart-sass-embedded/releases
ARG DART_SASS_VERSION=1.49.9
ARG DART_SASS_VERSION=1.54.0
LABEL version="${HUGO_VERSION}"
LABEL repository="https://github.com/jakejarvis/hugo-docker"