hamnet70/doc/docker/Dockerfile

20 lines
1.1 KiB
Docker
Raw Normal View History

2024-08-26 00:01:59 +02:00
FROM debian:stable
2024-08-26 22:50:28 +02:00
# for basic Forgejo + AsciiDoctor support
RUN apt update && apt install -y --no-install-recommends nodejs git ruby-rubygems make && apt clean
2024-08-26 00:01:59 +02:00
RUN gem install asciidoctor asciidoctor-diagram
2024-08-26 22:50:28 +02:00
# 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