You've already forked hugo-docker
mirror of
https://github.com/jakejarvis/hugo-docker.git
synced 2025-07-01 15:46:41 -04:00
Compare commits
20 Commits
Author | SHA1 | Date | |
---|---|---|---|
0a8ca90615
|
|||
8b514c58d7
|
|||
20f98c58b7
|
|||
a10483b36a
|
|||
e5a6870534
|
|||
62b12c0d22
|
|||
df27582975
|
|||
6cc3f39751
|
|||
8540c876dd
|
|||
e806604521
|
|||
7fc2ac2b8e
|
|||
56a30dab8f
|
|||
f49e3b1dcd
|
|||
2de4b89509
|
|||
10103bce3b
|
|||
fcb292357c
|
|||
61fa24ed38
|
|||
250387c4f1
|
|||
6e5386c78a
|
|||
86af318435
|
17
Dockerfile
17
Dockerfile
@ -1,11 +1,11 @@
|
||||
# the following version can be overridden at image build time with --build-arg
|
||||
ARG HUGO_VERSION=0.100.0
|
||||
ARG HUGO_VERSION=0.109.0
|
||||
# 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.18
|
||||
ARG ALPINE_VERSION=3.15
|
||||
ARG GO_VERSION=1.19
|
||||
ARG ALPINE_VERSION=3.16
|
||||
|
||||
# ---
|
||||
|
||||
@ -28,8 +28,7 @@ RUN apk add --update --no-cache \
|
||||
gcc \
|
||||
g++ \
|
||||
musl-dev \
|
||||
git && \
|
||||
go install github.com/magefile/mage@latest
|
||||
git
|
||||
|
||||
# clone source from Git repo:
|
||||
RUN git clone \
|
||||
@ -38,7 +37,9 @@ 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
|
||||
@ -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.19.2
|
||||
# https://github.com/sass/dart-sass-embedded/releases
|
||||
ARG DART_SASS_VERSION=1.49.9
|
||||
ARG DART_SASS_VERSION=1.57.1
|
||||
|
||||
LABEL version="${HUGO_VERSION}"
|
||||
LABEL repository="https://github.com/jakejarvis/hugo-docker"
|
||||
|
Reference in New Issue
Block a user