From 316562f10a8ee3bd9401bb3bd82776da1cc3728a Mon Sep 17 00:00:00 2001
From: Markus Bilz <github@markusbilz.com>
Date: Sun, 04 Oct 2026 14:09:37 +0000
Subject: [PATCH] chore: fix hugo deprecation warnings (hugo 0.167.0) (#604)

---
 .devcontainer/Dockerfile |   23 ++++++++++++-----------
 1 files changed, 12 insertions(+), 11 deletions(-)

diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
index 0c10c9b..c1aff25 100644
--- a/.devcontainer/Dockerfile
+++ b/.devcontainer/Dockerfile
@@ -5,33 +5,34 @@
 # VARIANT can be either 'hugo' for the standard version or 'hugo_extended' for the extended version.
 ARG VARIANT=hugo_extended
 # VERSION can be either 'latest' or a specific version number
-ARG HUGO_VERSION="0.158.0"
+ARG HUGO_VERSION="0.167.0"
 
 ARG DART_SASS_VERSION="1.99.0"
 
-# Download Hugo
-RUN apt-get update && apt-get install -y ca-certificates openssl git curl && \
+# Download Dart Sass and Hugo
+RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl git openssl && \
     rm -rf /var/lib/apt/lists/* && \
-    case $(uname -m) in \
+    case "$(uname -m)" in \
     aarch64) \
     export ARCH=arm64 ;; \
     *) \
     export ARCH=x64 ;; \
     esac && \
-    echo ${ARCH} && \
-    curl -LJO https://github.com/sass/dart-sass/releases/download/${DART_SASS_VERSION}/dart-sass-${DART_SASS_VERSION}-linux-${ARCH}.tar.gz && \
-    tar -xf dart-sass-${DART_SASS_VERSION}-linux-${ARCH}.tar.gz && \
+    echo "${ARCH}" && \
+    curl --proto "=https" --tlsv1.2 -fsSL -o dart-sass.tar.gz "https://github.com/sass/dart-sass/releases/download/${DART_SASS_VERSION}/dart-sass-${DART_SASS_VERSION}-linux-${ARCH}.tar.gz" && \
+    tar -xf dart-sass.tar.gz && \
     cp -r dart-sass/* /usr/local/bin && \
     rm -rf dart-sass* && \
-    case $(uname -m) in \
+    case "$(uname -m)" in \
     aarch64) \
     export ARCH=arm64 ;; \
     *) \
     export ARCH=amd64 ;; \
     esac && \
-    echo ${ARCH} && \
-    wget -O ${HUGO_VERSION}.tar.gz https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/${VARIANT}_${HUGO_VERSION}_linux-${ARCH}.tar.gz && \
-    tar xf ${HUGO_VERSION}.tar.gz && \
+    echo "${ARCH}" && \
+    curl --proto "=https" --tlsv1.2 -fsSL -o hugo.tar.gz "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/${VARIANT}_${HUGO_VERSION}_linux-${ARCH}.tar.gz" && \
+    tar -xf hugo.tar.gz hugo && \
+    rm hugo.tar.gz && \
     mv hugo /usr/bin/hugo
 # Hugo dev server port
 EXPOSE 1313

--
Gitblit v1.10.0