An image of Hugo Extended. The source is at https://github.com/bocan/odin-hugo
2.7K
This is a Dockerfile and a Github Action used to build a custom docker image of Hugo for my purely Docker powered web stack.
Hugo is a static site generator written in Go, optimized for speed and designed for flexibility. With its advanced templating system and fast asset pipelines, Hugo renders a complete site in seconds, often less.
Due to its flexible framework, multilingual support, and powerful taxonomy system, Hugo is widely used to create:
Use Hugo's embedded web server during development to instantly see changes to content, structure, behavior, and presentation. Then deploy the site to your host, or push changes to your Git provider for automated builds and deployment.
Hugo's fast asset pipelines include:
And with Hugo Modules, you can share content, assets, data, translations, themes, templates, and configuration with other projects via public or private Git repositories.
See the features section of the documentation for a comprehensive summary of Hugo's capabilities.
This image builds the standard (non-extended) edition of Hugo from source, as a fully static Go binary. The extended edition only adds WebP encoding and the embedded LibSass transpiler, neither of which my site uses.
I've based this Docker build from the work of @jakejarvis and his Dockerfile, heavily slimmed down. The final Alpine Linux container includes just Hugo, git, tzdata, and CA certificates.
Content type
Image
Digest
sha256:7b64e17a6…
Size
43.4 MB
Last updated
3 months ago
docker pull bocan/hugo