diff --git a/Config/HugoExample/Dockerfile b/Config/HugoExample/Dockerfile index 63996c8..29c6321 100644 --- a/Config/HugoExample/Dockerfile +++ b/Config/HugoExample/Dockerfile @@ -1,11 +1,23 @@ # 2025-08-13 Hyperling +# Changelog +## 20261027: Install hugo from source. paperMod currently requires ~150 and Debian has ~130, latest is ~160. ## Image ## FROM debian:trixie-slim +USER root ## Setup ## +ARG DEBIAN_FRONTEND=noninteractive + # System Dependencies -RUN apt-get update && apt-get install -y git hugo nginx cron curl bash sudo htop +RUN apt-get update && \ + apt-get install -y --no-install-recommends \ + git nginx cron curl bash sudo htop golang gcc && \ + rm -rf /var/lib/apt/lists/* + +# Install Hugo +RUN CGO_ENABLED=1 go install -tags extended github.com/gohugoio/hugo@latest +RUN ln -s $HOME/go/bin/hugo /usr/local/bin/hugo # User and Group #RUN groupadd -r hugo && useradd -r -g hugo hugo @@ -31,5 +43,4 @@ RUN chmod +x /root/main.sh ## Main ## # Install + Run Website WORKDIR /var/www/ -USER root CMD /root/main.sh "$REPO" "$BRANCH" "$PROD" "$DEV"