Product Docs
Open Source
Education
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.
hugo
/hugo
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!