This is a minimal Docker image for generating static sites with Hugo.
It has two purposes:
To run a local server during development add the following docker-compose.yml
file to the root of your Hugo project.
Note: Hugo will serve draft content when run in this manner.
version: "3.1"
services:
hugo:
image: orphans/hugo
ports:
- "1313:1313"
volumes:
- ".:/hugo"
Then run docker-compose up
as usual.
The image can be used with CI to build the static website files and Rsync them to a remote server.
(Detail to follow)