I’ve created and maintain several websites that are statically-generated with Hugo (including the one you’re reading right now). I build and test these sites with CircleCI. With CircleCI 2.0, the build process is heavily Docker based. I made a Docker image for use with CircleCI that has Hugo to build the site and HTMLProofer to test it.
Unlike some Hugo Docker images that are currently floating around, I am maintaining images for the last 3 minor releases of Hugo. This means that your image won’t disappear during the next Hugo release forcing you to upgrade before you are ready.
I created this image with building on CircleCI in mind. In the future, I plan to not only make the image better on CircleCI when possible, but make the image easy to use locally with the Docker CLI as well as on Travis CI.
Note: While this image may not be easy to use locally with the Docker CLI yet, CircleCI 2.0 does have a local builds feature which serves the same purpose.