From 1984289b526d16a011bcde393e6e6e5ee985b634 Mon Sep 17 00:00:00 2001 From: Greg Date: Sun, 1 Jun 2025 22:10:10 +0200 Subject: [PATCH] chore: pin Hugo version to 0.147.0 and simplify dependency installation --- Dockerfile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index a92e026..8e90eb2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,13 +2,11 @@ FROM alpine:3.19 AS builder # Install dependencies -RUN apk add --no-cache wget tar jq curl +RUN apk add --no-cache wget tar -# Install latest Hugo extended version (with improved extraction) -RUN LATEST_RELEASE=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | jq -r '.tag_name') && \ - VERSION=${LATEST_RELEASE#v} && \ - echo "Installing latest Hugo version: $VERSION" && \ - wget -q https://github.com/gohugoio/hugo/releases/download/${LATEST_RELEASE}/hugo_extended_${VERSION}_linux-amd64.tar.gz -O hugo.tar.gz && \ +# Install Hugo extended version 0.147.0 (latest stable version) +RUN HUGO_VERSION=0.147.0 && \ + wget -q https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz -O hugo.tar.gz && \ mkdir -p /tmp/hugo && \ tar -xzf hugo.tar.gz -C /tmp/hugo && \ mv /tmp/hugo/hugo /usr/local/bin/ && \