Skip to content

Commit b247bdb

Browse files
authored
fix mdbooks dockerfile (#229)
1 parent 6ef070d commit b247bdb

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

docs/operational-docs/Dockerfile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,7 @@ FROM rust:1.90-slim AS builder
33

44
# Install mdbook
55
RUN cargo install mdbook --version 0.5.1
6-
7-
# Use the same base as the builder for compatibility
8-
FROM rust:1.90-slim
9-
10-
# Copy mdbook binary from builder
11-
COPY --from=builder /usr/local/cargo/bin/mdbook /usr/local/bin/mdbook
6+
RUN cargo install mdbook-mermaid
127

138
# Set working directory
149
WORKDIR /docs
@@ -18,6 +13,8 @@ COPY book.toml .
1813
COPY src ./src
1914
COPY theme ./theme
2015

16+
RUN mdbook-mermaid install /docs
17+
2118
# Expose the port mdbook serve uses
2219
EXPOSE 3000
2320

0 commit comments

Comments
 (0)