Sign inSign up

buzzsurfr/hugo

By buzzsurfr

Updated over 6 years ago

hugo - https://gohugo.io/

Image
0

463

buzzsurfr/hugo repository overview

docker-hugo

Dockerfile for using hugo locally as an alternative to installing. Built as minimal container.

Usage

docker run -it -p 1313:1313 -v $(pwd):/host hugo [flags] [command]

This can be aliased in your .bash_profile to use a standard directory and port for troubleshooting. Assuming using a blog folder under your home directory:

alias hugo='docker run -it -p 1313:1313 -v ~/blog:/host hugo'

Reload your terminal session, and you can run hugo new site .. Use the current working directory within the container to point to your blog (provided you mapped /host to the directory on the host).

Tag summary

Content type

Image

Digest

Size

12.8 MB

Last updated

over 6 years ago

docker pull buzzsurfr/hugo