Public | Automated Build

Last pushed: 5 months ago
Short Description
Hugo static website generator
Full Description



Hugo in a container.
To get up and running quickly;

Pull the image:

$ docker pull mpepping/hugo

Initialize a new website:

$ mkdir mysite && cd mysite
$ docker run --rm -v $PWD:/src mpepping/hugo new site .

Add a shell alias for ease of use:

$ alias hugo="docker run -it --rm -v $PWD:/src -p 1313:1313 mpepping/hugo"

Create a new post:

$ hugo new post/

Run locally:

$ hugo server -w --baseUrl="http://$DOCKERHOST:1313" --bind=  

Now, open http://$DOCKERHOST:1313/ to see your Hugo website.

To build the site for publication:

$ hugo --baseUrl=""

The content of the public folder can be uploaded to a webservice that serves
static content.


Docker Pull Command
Source Repository