mdbook-container/Dockerfile
2022-11-22 10:33:56 +01:00

9 lines
273 B
Docker

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