tools/mdbook/Containerfile

14 lines
300 B
Plaintext
Raw Permalink Normal View History

2023-12-14 04:47:54 +01:00
FROM rust:slim
LABEL org.opencontainers.image.description="mdBook container (from source)"
ARG VERSION
ARG VERSION_MERMAID
RUN cargo install mdbook --version $VERSION
RUN cargo install mdbook-mermaid --version $VERSION_MERMAID
ENV SOURCE=/book
EXPOSE 3000/tcp
CMD mdbook serve $SOURCE -n 0.0.0.0