docker pull cgr.dev/chainguard/hugo
Need access to a specific version? Contact us.
Get notified of upcoming product changes, critical vulnerability notifications and patches and more.
Sign inThis is a minimal Hugo image.
The image is available on cgr.dev
:
This image only contains hugo
and supporting libraries. The Hugo process starts in /hugo
by default so this directory may be initialized with the Hugo site to serve.
The following is an example of using the Hugo image locally. It's based on the official Hugo "quickstart" example.
To begin, start a shell in the Hugo developer (dev) container.
Create a new Hugo site using the quickstart commands.
Navigate into the new site's root directory.
Initiate an empty Git repository
Clone a Hugo theme into the themes
directory.
Add a line to the site's configuration file to let Hugo know to use the new theme.
Start the Hugo development server to serve the site. Be sure to change the default bind address and port to make the site accessible outside of the container.
Now open your browser to localhost:8080 to visit the sample site.
When finished, you can press CTRL + C
to stop the Hugo server from running, and then CTRL + D
to exit the container shell.
If you're interested in enterprise support, SLAs, and access to older tags, get in touch.
Chainguard Images contain software packages that are direct or transitive dependencies. The following licenses were found in the "latest" version of this image:
Apache-2.0
LGPL-2.1-or-later
MIT
MPL-2.0
For a complete list of licenses, please refer to this Image's SBOM.
Software license agreementProducts
Chainguard Images© 2024 Chainguard, Inc.