This is an Alpine Docker image with the Hugo CMS binary installed.
It's entry point is set to /usr/local/bin/hugo. If run, the default command
will run under root from / with ./site as input and ../public as output.
docker run --rm \
--volume "$(pwd)/input":/site \
--volume "$(pwd)/output":/public \
uberspace/hugoNote: you can use --user $(id -u):$(id -g) — or similar — to preserve your
file ownership.
You could also use the image in the CI for your project, similar to this:
hugo:
stage: build
image: uberspace/hugoOr use your own entry point:
hugo:
stage: build
image:
name: uberspace/hugo
entrypoint: [""]
script:
- /usr/local/bin/hugo --source page --destination /var/www --minifyPushes to main trigger builds on Docker Hub.