hugo, add Dockerfile updates to compile the executable, gives a much more recent version than Debian ships.
This commit is contained in:
1 parent
6ffae6e041
commit
6f1d022aef
1 file changed
+13
-2
@@ -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"
|
||||
Reference in new issue
Block a user