From b6125f4e4ac2fbd12bf1c3f06ee9f4e567ba7608 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 25 Oct 2021 16:34:48 -0400 Subject: [PATCH] Fix to use new includes for lemmy-docs --- Dockerfile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 35e0253..a22cfd0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,20 @@ +# Build the curl includes for the docs +FROM alpine:3 as docs_include +RUN apk add --no-cache curl bash +WORKDIR /app +COPY lemmy-docs ./lemmy-docs +WORKDIR /app/lemmy-docs +RUN ./update-includes.sh + # Build the docs FROM rust:slim as docs WORKDIR /app RUN cargo install mdbook \ - --git https://github.com/Nutomic/mdBook.git \ + --git https://github.com/Ruin0x11/mdBook.git \ --branch localization \ - --rev 0982a82 + --rev 9d8147c COPY lemmy-docs ./lemmy-docs +COPY --from=docs_include /app/lemmy-docs/include /app/lemmy-docs/include RUN mdbook build lemmy-docs -d ../docs # Build the typedoc API docs