From: Felix Ableitner Date: Sat, 9 Jan 2021 16:54:31 +0000 (+0100) Subject: Include fix for mdbook xss vulnerability X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/readmes/%7B%7D/%7Bthis.state.thumbnail%7D?a=commitdiff_plain;h=fec77d583f9f05394fe0cf43daccefb7bf4e92e0;p=lemmy.git Include fix for mdbook xss vulnerability --- diff --git a/docker/dev/Dockerfile b/docker/dev/Dockerfile index 01c3c75b..292ff903 100644 --- a/docker/dev/Dockerfile +++ b/docker/dev/Dockerfile @@ -46,9 +46,10 @@ RUN cp ./target/$CARGO_BUILD_TARGET/$RUSTRELEASEDIR/lemmy_server /app/lemmy_serv # Build the docs FROM $RUST_BUILDER_IMAGE as docs WORKDIR /app -RUN cargo install mdbook --git https://github.com/Ruin0x11/mdBook.git \ - --branch localization --rev d06249b --force +RUN cargo install mdbook --git https://github.com/Nutomic/mdBook.git \ + --branch localization --rev 0982a82 --force COPY --chown=rust:rust docs ./docs +RUN ls -la docs/ RUN mdbook build docs/ # The alpine runner diff --git a/docker/dev/volume_mount.dockerfile b/docker/dev/volume_mount.dockerfile index 6e25dd7e..a6724a86 100644 --- a/docker/dev/volume_mount.dockerfile +++ b/docker/dev/volume_mount.dockerfile @@ -17,8 +17,8 @@ RUN --mount=type=cache,target=/app/target \ FROM rust:1.47-buster as docs WORKDIR /app -RUN cargo install mdbook --git https://github.com/Ruin0x11/mdBook.git \ - --branch localization --rev d06249b --force +RUN cargo install mdbook --git https://github.com/Nutomic/mdBook.git \ + --branch localization --rev 0982a82 --force COPY docs ./docs RUN mdbook build docs/ diff --git a/docker/prod/Dockerfile b/docker/prod/Dockerfile index 9a120683..34921161 100644 --- a/docker/prod/Dockerfile +++ b/docker/prod/Dockerfile @@ -46,8 +46,8 @@ RUN cp ./target/$CARGO_BUILD_TARGET/$RUSTRELEASEDIR/lemmy_server /app/lemmy_serv # Build the docs FROM $RUST_BUILDER_IMAGE as docs WORKDIR /app -RUN cargo install mdbook --git https://github.com/Ruin0x11/mdBook.git \ - --branch localization --rev d06249b --force +RUN cargo install mdbook --git https://github.com/Nutomic/mdBook.git \ + --branch localization --rev 0982a82 --force COPY --chown=rust:rust docs ./docs RUN mdbook build docs/