Skip to content

hydroxycarbamide/docker-mdbook

 
 

Repository files navigation

license GitHub Actions status

Docker image for mdBook

Alpine Base Docker Image for rust-lang/mdBook and catppuccin/mdbook

Alpine base Docker Image for rust-lang/mdBook and catppuccin/mdbook.

Getting started

Image tag Base Image Image size Notes
ghcr.io/hydroxycarbamide/mdbook:alpine alpine:latest 29.3MB GitHub Packages: Minimum image
ghcr.io/hydroxycarbamide/mdbook:rust-alpine rust:alpine 812MB GitHub Packages: mdbook test subcommand is available

Docker Compose

Create your docker-compose.yml like the following.

version: '3'

services:
  mdbook:
    container_name: mdbook
    image: ghcr.io/hydroxycarbamide/mdbook:alpine    # Minimum image
    # image: hydroxycarbamide/mdbook:rust-alpine     # `mdbook test` subcommand is available
    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

GitHub Actions for mdBook

The mdBook Setup GitHub Action is recommended.

License

About the author

Releases

No releases published

Packages

 
 
 

Languages

  • Dockerfile 72.1%
  • Makefile 27.9%