Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 887 Bytes

README.adoc

File metadata and controls

31 lines (21 loc) · 887 Bytes

hugo-asciidoctor Docker image

A Hugo-AsciiDoctor toolchain based on Ubuntu.

Building the container

docker build \
    --build-arg VCS_REF=$(git rev-parse HEAD | cut -c1-10) \
    --build-arg BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ") \
    -t rhaix/hugo-asciidoctor \
    .

or run the build.sh shell script.

Running the container

docker run --rm --name "hugo" -p 1313:1313 -P -v $(pwd):/hugo rhaix/hugo-asciidoctor
  • expose port 1313 on localhost

  • set container name to 'hugo'

  • mount current dir as hugo project root

  • remove container on shutdown