Home

Awesome

<!-- https://shields.io/ -->

license

<img width="400" alt="Docker image for mdBook" src="./images/ogp.jpg">

Alpine-Based Docker Images for mdBook

Alpine-based Docker Images for rust-lang/mdBook.

DockerHub Badge

Docker images on GitHub Packages ghcr.io/peaceiris/mdbook are also available.

CPU architectures amd64 and arm64 are supported.

Pre-installed preprocessors for mdBook

Getting started

Available Docker Image Tags

Image tag (mdBook version)Base ImageImage sizeNotes
peaceiris/mdbook:v0.x.xalpine:3.2030MBMinimum image
peaceiris/mdbook:v0.x.x-rustrust:1.78-alpine3.20855MBmdbook test subcommand is available
ghcr.io/peaceiris/mdbook:v0.x.xalpine:3.2030MBGitHub Packages: Minimum image
ghcr.io/peaceiris/mdbook:v0.x.x-rustrust:1.78-alpine3.20855MBGitHub Packages: mdbook test subcommand is available

Docker Compose

Please refer to the example project and the compose.yml.

cd ./example

# Run "mdbook serve"
docker compose up

# Run "mdbook build"
docker compose run --rm mdbook build

# Run "mdbook init"
docker compose run --rm mdbook init

GitHub Actions for mdBook

The mdBook Setup GitHub Action is recommended.

License

About the author