-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
46 lines (36 loc) · 1.11 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# See https://docs.asciidoctor.org/diagram-extension/latest/
# Tested on asciidoctor/docker-asciidoctor:1.78
FROM asciidoctor/docker-asciidoctor:latest
# Image comes with PlantUML and Grahpviz by default
# Add renderers of additional diagram languages
# Add dependencies
RUN apk add --update neovim nodejs npm
RUN apk add --no-cache \
build-base \
g++ \
cairo-dev \
jpeg-dev \
giflib-dev \
libpng-dev \
pango-dev \
bash \
imagemagick \
ttf-dejavu
# TODO: Consider installing bibtex for using: asciidoctor -r asciidoctor-bibtex
# DBML
# Since making ERD with PlantUML is cumbersome
RUN npm install -g @dbml/cli
RUN npm install -g @softwaretechnik/dbml-renderer
# Note Mermaid and BPMN needs Puppeteer
# So they are ommited for now in the default config
# BPMN
# Since making BPMN with PlantUML is not supported
# RUN npm install -g bpmn-js-cmd
# Mermaid for additional diagrams
# RUN npm install -g @mermaid-js/mermaid-cli
# Vega
# For making charts and graphs
RUN npm install --build-from-source -g vega-cli vega vega-lite vega-embed
WORKDIR /documents
VOLUME /documents
CMD ["/bin/bash"]