bric3 / hugo-builder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hugo Builder

Dockerfile for a container image intended to run the Hugo static site generator with Asciidoctor. It is expected that syntax highlighting will rely on [highlight.js].

This image also packs

Use by running the following from within a Hugo project directory:

docker run --rm -v $PWD:/src bric3/hugo-builder hugo --buildDrafts

Or serve the files (--bind=0.0.0.0 is necessary)

docker run --rm --volume $PWD:/src --publish "0.0.0.0:1313:1313" bric3/hugo-builder hugo serve --bind=0.0.0.0 --baseUrl=blog.local --buildDrafts

About

License:Apache License 2.0


Languages

Language:Dockerfile 100.0%