doc/Dockerfile: add mscgen to container; remove mermaid
This commit is contained in:
parent
8059b51150
commit
9c38157055
|
@ -5,15 +5,9 @@ RUN apt update && apt install -y --no-install-recommends nodejs git ruby-rubygem
|
|||
|
||||
RUN gem install asciidoctor asciidoctor-diagram
|
||||
|
||||
# for generating the diagrams with mmdc
|
||||
RUN apt install -y --no-install-recommends npm && apt clean
|
||||
|
||||
# these are the dependencies of chromium which is required to convert the diagrams to SVG
|
||||
RUN apt install -y --no-install-recommends libasound2 libatk-bridge2.0-0 libatk1.0-0 libatspi2.0-0 libc++1-16 libc++abi1-16 libc6 libcairo2 libcups2 libdav1d6 libdbus-1-3 libdouble-conversion3 libdrm2 libevent-2.1-7 libexpat1 libflac12 libfontconfig1 libfreetype6 libgbm1 libglib2.0-0 libharfbuzz-subset0 libharfbuzz0b libjpeg62-turbo liblcms2-2 libminizip1 libnspr4 libnss3 libopenh264-7 libopenjp2-7 libopus0 libpango-1.0-0 libpng16-16 libpulse0 libunwind-16 libx11-6 libxcb1 libxcomposite1 libxdamage1 libxext6 libxfixes3 libxkbcommon0 libxml2 libxnvctrl0 libxrandr2 libxslt1.1 libzstd1 zlib1g libgtk-3-0 && apt clean
|
||||
# tools for diagram generation
|
||||
RUN apt install -y --no-install-recommends mscgen && apt clean
|
||||
|
||||
# run as unprivileged user in the container
|
||||
RUN useradd -m ciuser
|
||||
RUN npm install -g @mermaid-js/mermaid-cli@9.1.7
|
||||
|
||||
COPY mermaid-ci-config.json /home/ciuser/mermaid-ci-config.json
|
||||
|
||||
USER ciuser
|
||||
|
|
Loading…
Reference in a new issue