From 9e019605ea525e5d4e7e49c7d475fee9b1c0be9d Mon Sep 17 00:00:00 2001 From: Hyperling Date: Tue, 27 Oct 2026 19:47:08 -0700 Subject: [PATCH] hugo, refactor Dockerfile and remove unneeded packages. --- Config/HugoExample/Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Config/HugoExample/Dockerfile b/Config/HugoExample/Dockerfile index 29c6321..7068eee 100644 --- a/Config/HugoExample/Dockerfile +++ b/Config/HugoExample/Dockerfile @@ -12,11 +12,14 @@ ARG DEBIAN_FRONTEND=noninteractive # System Dependencies RUN apt-get update && \ apt-get install -y --no-install-recommends \ - git nginx cron curl bash sudo htop golang gcc && \ + git nginx cron curl bash sudo \ + golang gcc && \ rm -rf /var/lib/apt/lists/* -# Install Hugo +# Compile Hugo RUN CGO_ENABLED=1 go install -tags extended github.com/gohugoio/hugo@latest + +# Install Hugo RUN ln -s $HOME/go/bin/hugo /usr/local/bin/hugo # User and Group