doc/docker: Try to get mermaid to work
All checks were successful
/ build-doc (push) Successful in 14s
All checks were successful
/ build-doc (push) Successful in 14s
This commit is contained in:
parent
fc1785f12a
commit
65985b6232
|
@ -1,4 +1,19 @@
|
|||
FROM debian:stable
|
||||
|
||||
RUN apt update && apt install -y nodejs git ruby-rubygems make
|
||||
# for basic Forgejo + AsciiDoctor support
|
||||
RUN apt update && apt install -y --no-install-recommends nodejs git ruby-rubygems make && apt clean
|
||||
|
||||
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
|
||||
|
||||
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