Skip to content
mdBook Alpine Base Docker Image.
Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows
images
.dockerignore
.gitignore
.hadolint.yaml
Dockerfile
LICENSE
README.md

README.md

license release GitHub release date GitHub Actions status

Docker image for mdBook

Alpine Base Docker Image for mdBook

Alpine base Docker Image for rust-lang/mdBook.

DockerHub Badge

Getting started

Image tag Base Image Image size Notes
peaceiris/mdbook:v0.3.x alpine:3.10 17.8 MB Small image
peaceiris/mdbook:v0.3.x-rust rust:alpine3.10 765 MB mdbook test subcommand is available

Docker Compose

Create your docker-compose.yml like the following.

version: '3'

services:
  mdbook:
    container_name: mdbook
    image: peaceiris/mdbook:v0.3.5
    # image: peaceiris/mdbook:v0.3.5-rust
    stdin_open: true
    tty: true
    ports:
      - 3000:3000
      - 3001:3001
    volumes:
      - ${PWD}:/book
    command:
      - serve
      - --hostname
      - '0.0.0.0'

Usage

# Run "mdbook serve"
docker-compose up

# Run a command of mdBook
docker-compose run --rm mdbook init

License

About the author

You can’t perform that action at this time.