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
- asciidoctor-diagram to generate plantuml and ditaa diagrams among others.
- svgbob to support a free-form ascii diagrams.
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