Merge pull request 'Include fix for mdbook xss vulnerability' (#155) from mdbook-xss into move_views_to_diesel

Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/155
pull/1349/head
dessalines 2021-01-12 15:57:27 +00:00
commit 4eedc31893
3 changed files with 7 additions and 6 deletions

View File

@ -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

View File

@ -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/

View File

@ -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/