Skip to content

yazpik/docker-gohugo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Docker image to work with hugo static page

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages