commit 0d3ece6b56abc5c8fe8bf64aa4380fcdc1cc8691 Author: victor Date: Tue Nov 22 10:33:56 2022 +0100 add toc 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