Skip to content

Commit 82a7d19

Browse files
committed
Use a newer version of Hugo
Signed-off-by: Juan Cruz Viotti <[email protected]>
1 parent 16e92a7 commit 82a7d19

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Dockerfile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
FROM debian:bookworm-slim
22
RUN apt-get update \
3-
&& apt-get install -y make hugo nodejs npm \
3+
&& apt-get install -y make nodejs npm curl ca-certificates \
44
&& rm -rf /var/lib/apt/lists/*
55

6+
ARG HUGO_VERSION=0.147.2
7+
ARG HUGO_RELEASE=https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}
8+
RUN ARCH=$(dpkg --print-architecture) && \
9+
if [ "$ARCH" = "amd64" ]; then HUGO_ARCH="64bit"; \
10+
elif [ "$ARCH" = "arm64" ]; then HUGO_ARCH="ARM64"; \
11+
else echo "Unsupported architecture: $ARCH"; exit 1; fi && \
12+
curl -L ${HUGO_RELEASE}/hugo_extended_${HUGO_VERSION}_Linux-${HUGO_ARCH}.tar.gz \
13+
| tar -xz -C /usr/local/bin hugo
14+
615
COPY assets /site/assets
716
COPY config /site/config
817
COPY content /site/content

config/_default/config.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ languageCode = 'en-us'
22
title = 'Reference documentation for JSON Schema'
33
staticDir = [ './vendor/bootstrap-icons/font/fonts', './static' ]
44

5-
paginate = 100000000
65
[pagination]
76
pagerSize = 100000000
87

0 commit comments

Comments
 (0)