Image Overview: hugo

ReferenceChainguard ImagesProduct

stable cgr.dev/chainguard/hugo

TagsAliases
latest0, 0.113, 0.113.0, 0.113.0-r0
latest-dev0-dev, 0.113-dev, 0.113.0-dev, 0.113.0-r0-dev

This is a minimal Hugo image. The image only contains hugo and supporting libraries. The hugo process start in /hugo by default so this directory may be initialized with the Hugo site to serve.

Here is an example using the Hugo image to run the “quickstart” locally:

# Start a shell in the Hugo "dev" container:
docker run -ti --rm -v -p 8080:8080 --entrypoint=/bin/sh \
       cgr.dev/chainguard/hugo:latest-dev

# Pass the quickstart commands (changing the bind address and port)
hugo new site quickstart
cd quickstart
git init
git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke themes/ananke
echo "theme = 'ananke'" >> config.toml
hugo server --bind 0.0.0.0 --port 8080

Now open your browser to localhost:8080!