To create a new hugo site in the ./src/ directory:
docker run -it --rm -v "${PWD}/src":/site hugo new site first-site
cd src/first-site
git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git themes/ananke
echo "theme = 'ananke'" >> hugo.toml
cd ../..
To start a local web server
```bash
docker run -it --rm -v "${PWD}/src/first-site":/site -p 8080:1313 hugo server --bind 0.0.0.0
To build site docker run -it --rm -v "${PWD}/src/first-site":/site hugo
Content type
Image
Digest
sha256:23b126123…
Size
26 MB
Last updated
over 2 years ago
docker pull rev9en/hugo