HUB
Sign inSign up
hugo logo

mbentley/hugo

By mbentley

•Updated 2 days ago

Hugo (https://gohugo.io/)

Image
0

10K+

mbentley/hugo repository overview

⁠mbentley/hugo

docker image for hugo⁠ based off of alpine:latest

To pull this image: docker pull mbentley/hugo

Example usage:

docker run -it --rm mbentley/hugo --help

Run server for development

docker run -it --rm \
  -u "$(id -u):$(id -g)" \
  -p 1313:1313 \
  -w "${PWD}" \
  -v "${PWD}":"${PWD}" \
  mbentley/hugo server \
  --bind 0.0.0.0

Build site

docker run -it --rm \
  -u "$(id -u):$(id -g)" \
  -w "${PWD}" \
  -v "${PWD}":"${PWD}" \
  mbentley/hugo \
  -v

Make sure to run the above commands with the -u and -g parameters otherwise you may end up with files that have been written as root:root

Tag summary
Recent tags
Content type
Image
Digest
sha256:0499235a5…
Size
57.6 MB
Last updated
2 days ago
docker pull mbentley/hugo:latest