❗ This is not intended for widespread consumption yet, use at your own risk.
Compress media files as a build step when using site generator Hugo.
This image currently expects the working directory to be set to the root of your Hugo project, and for your build output to be written to the default public
directory.
It builds your site with the default hugo
command, and then compresses JPEG and PNG media files with mozjpeg and pngquant respectively.
docker run -v /path/to/site:/src -w /src docker.pkg.github.com/nchlswhttkr/hugo-compress/hugo-compress