Add Dockerfile for mdbook

This commit is contained in:
2025-05-28 02:29:04 +00:00
parent 6a6bbfe8ed
commit 85d622fdb6
2 changed files with 15 additions and 0 deletions

View File

@ -9,3 +9,5 @@
!/Cargo.lock
!/Cargo.toml
!/ascii_art.txt
!/docs
!/book.toml

13
Dockerfile.mdbook Normal file
View File

@ -0,0 +1,13 @@
FROM rust:slim AS builder
WORKDIR /app
RUN cargo install mdbook
COPY book.toml /app/book.toml
COPY docs /app/docs
RUN mdbook build
FROM nginx:alpine AS webserver
COPY --from=builder /app/book /usr/share/nginx/html