High performance Hugo docker image
This image does one thing well: generate the fastest web site via Hugo.
Visit https://hub.docker.com/r/marcaruel/hugo-tidy/tags/ to see the current tags.
- Fast. Generating a simple site takes 1.6 seconds, including syntax highlighting
- Runs as single step
- minifies the
.gzfiles for high performance web serving
- images are properly tagged, so you know what versions are running
- Hugo input must be in
- Generated website is in
docker run --rm -u $(id -u):$(id -g) -v $(pwd):/data marcaruel/hugo-tidy:latest
Note: it is highly recommended to pin to a specific version listed at hub.docker.com/r/marcaruel/hugo-tidy/tags/.
Making your own
HUGO_VERSION, to select newer
REPO to have it push to your repository.
To push an image on your name with a new version of Hugo, run the following:
make push HUGO_VERSION=0.99.1 REPO=user/repo
When searching for a Docker image with Hugo included, I found many but they were all in poor condition in different ways. Many do not have tags, others use :latest so are not reproducible, many uses containers that are neededlessly large, others forces you on on what it ran run, none minified, the rest was stale. How to fix it? By creating yet-another-image, obviously!