Public | Automated Build

Last pushed: 23 days ago
Short Description
Docker image for Hugo (https://gohugo.io)
Full Description

docker-hugo



Docker image for Hugo — a fast & modern static page generator.

Check out Hugo repository.

Build

Build the latest version

docker build -t yumminhuang/docker-hugo:latest .

Specify Hugo version in --build-arg

docker build -t yumminhuang/docker-hugo:0.20 --build-arg HUGO_VERSION=0.20

Run

Generate static web pages in public directory

docker run --rm -v $(pwd):/website yumminhuang/docker-hugo:latest

Launch hugo server, which is very useful to check how the site looks like.

docker run --rm -p 1313:1313 -v $(pwd):/website yumminhuang/docker-hugo:latest server --bind=0.0.0.0 -w -D
Docker Pull Command
Owner
yumminhuang
Source Repository