This small mdBook CLI Docker image is built using ekidd/rust-musl-builder as a builder.
Use init
command to initialize a directory with the minimal boilerplate elements to start with.
mkdir mydoc
cd mydoc
docker run -it --rm -v $(pwd):/mdbook moikot/mdbook init
Use build
command to render your book.
docker run --rm -v $(pwd):/mdbook moikot/mdbook build
Please refer to mdBook CLI for more commands and information about how to use them.