Sign inSign up

mbentley/hugo

By mbentley

Updated 1 day 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

Content type

Image

Digest

sha256:4cc1930c0

Size

55.2 MB

Last updated

1 day ago

docker pull mbentley/hugo