Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 1.28 KB

README.md

File metadata and controls

30 lines (19 loc) · 1.28 KB

docker-gohugo

Docker image to work with go-hugo

Docker Repository on Quay

"Hugo is a general-purpose website framework. Technically speaking, Hugo is a static site generator. Unlike other systems which dynamically build a page every time a visitor requests one, Hugo does the building when you create your content. Since websites are viewed far more often than they are edited, Hugo is optimized for website viewing while providing a great writing experience." Hugo was originally developed by Steve Francia https://github.com/spf13

This repository builds an alpine:3.4 Docker image with Hugo installed.

The hugo binary lives in /bin/hugo and the default CMD is set to Hugo, so to generate a site, run this:

docker run --rm -v $PWD:/pwd -w /pwd quay.io/yazpik/docker-gohugo

I recommend generating with verbose mode on, so to do that run this:

docker run --rm -v $PWD:/pwd -w /pwd quay.io/yazpik/docker-gohugo hugo -v

To serve, watching files, run like this:

docker run --rm -v $PWD:/pwd -w /pwd quay.io/yazpik/docker-gohugo hugo server -w