From 0d3ece6b56abc5c8fe8bf64aa4380fcdc1cc8691 Mon Sep 17 00:00:00 2001 From: victor Date: Tue, 22 Nov 2022 10:33:56 +0100 Subject: [PATCH] add toc --- Dockerfile | 9 +++++++++ README.md | 1 + 2 files changed, 10 insertions(+) create mode 100644 Dockerfile create mode 100644 README.md diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..790c4e3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM alpine:3 as builder +RUN apk add --no-cache cargo +RUN cargo install mdbook +RUN cargo install mdbook-toc + +FROM alpine:3 +RUN apk add --no-cache libgcc +COPY --from=builder /root/.cargo/bin/mdbook /bin/mdbook +COPY --from=builder /root/.cargo/bin/mdbook-toc /bin/mdbook-toc diff --git a/README.md b/README.md new file mode 100644 index 0000000..0b98f26 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# mdbook Dockerfile