autodoc/Dockerfile.ubuntu
Jörn-Michael Miehe f3219e9477 merge changes from workstation "Mustafa":
- add ubuntu libraries
- remove unused Makefile
2024-11-18 23:33:28 +01:00

48 lines
1,014 B
Docker

FROM pandoc/extra:latest-ubuntu AS stage-base
RUN set -ex; \
\
deluser --remove-home ubuntu; \
\
apt-get update; apt-get install -y \
ghostscript \
inotify-tools \
make \
; rm -rf /var/lib/apt/lists/*; \
\
tlmgr install \
kpfonts \
lastpage \
latexmk \
;
COPY src/usr /usr
WORKDIR /docs
ENTRYPOINT ["autodoc"]
CMD ["-bw"]
FROM stage-base AS stage-diagrams
RUN set -ex; \
\
apt-get update; apt-get install -y \
libasound2t64 \
libatk1.0-0t64 \
libatk-bridge2.0-0t64 \
libgbm1 \
libnss3 \
libxcomposite1 \
libxdamage1 \
libxfixes3 \
libxkbcommon0 \
libxrandr2 \
npm \
; rm -rf /var/lib/apt/lists/*; \
\
npm install --global @mermaid-js/mermaid-cli; \
\
wget \
--output-document='/usr/local/share/pandoc/filters/diagram.lua' \
'https://raw.githubusercontent.com/pandoc-ext/diagram/refs/heads/main/_extensions/diagram/diagram.lua' \
;