HugoMods hugomods/hugo:exts https://hub.docker.com/r/hugomods/hugo/ bridge false Build and deploy Hugo static websites on Unraid. Automatically clones your Git repository, installs dependencies, and builds your Hugo site. Perfect for generating static sites for blogs, documentation, landing pages, and more with Hugo's blazing-fast static site generation. Features persistent storage for source code and node_modules, automatic dependency management, and support for custom Hugo configurations. Simply provide your Git repository URL and the site will be built in the /src/public directory. MediaApp:Other https://raw.githubusercontent.com/Lowess/docker-templates-unraid/main/Lowess/hugomods.xml https://raw.githubusercontent.com/Lowess/docker-templates-unraid/main/Lowess/images/hugomods.png https://github.com/Lowess/docker-templates-unraid 2025-01-04 --entrypoint=/bin/sh / development /mnt/user/appdata/hugomods/src /mnt/user/appdata/hugomods/config /mnt/user/appdata/hugomods/node_modules -c 'set -e; echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"; echo "🕹️ Hugo Website Boot"; echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"; cd /src; if [ ! -f package.json ]; then echo "📁 First boot - cloning repository"; GR="`printenv GIT_REPO 2>/dev/null || true`"; if [ -z "$GR" ]; then echo "❌ ERROR: GIT_REPO is not set"; exit 1; fi; echo "🔄 Cloning: $GR"; rm -rf /tmp/repo; git clone -b main "$GR" /tmp/repo; mv /tmp/repo/* /tmp/repo/.[!.]* /src/ 2>/dev/null || true; rm -rf /tmp/repo; echo "✅ Repository cloned"; elif [ -d .git ]; then echo "🔄 Updating repository"; git pull || echo "⚠️ Git pull failed, continuing with existing code"; else echo "✅ Source code exists (not a git repo)"; fi; echo "📦 Installing dependencies…"; npm install; echo "🏗️ Building site…"; exec npm run build'