Docker container for generating documentation with Hugo and Docsy
265
Allows you to build your static documentation sites using the docsy theme.
Contains hugo-extended, docsy theme and the docsy prerequisites (node postcss postcss-cli autoprefixer)
Runs as the node user with 1000:1000 so you can safely map out generated contents as non-root.
The default image is alpine based, but you can use Dockerfile.buster to base it off Debian buster. Built with the ordinary docker build .
Alpine image is about 270Mb size, of which 165Mb is hugo+docksy+deps
Use the --bind hugo argument to have it bind to all interfaces instead of only the localhost that it does by default. This way the container port can be properly exported to the host.
Share the hugo config, the documentatio contents and the .git folders, so docksy can show last modified dates.
docker run --rm -it -v $PWD/config.toml:/app/config.toml -v $PWD/contents:/app/contents -v $PWD/.git:/app/.git -p 1313:1313 alexivkin/docsygen serve --bind 0.0.0.0
Share the folder for the results of the build
docker run --rm -it -v $PWD/config.toml:/app/config.toml -v $PWD/contents:/app/contents -v $PWD/.git:/app/.git -v $PWD/public:/app/public alexivkin/docsygen
Content type
Image
Digest
Size
109.8 MB
Last updated
over 5 years ago
docker pull alexivkin/docsygen