forked from foliant-docs/docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile-full
83 lines (53 loc) · 2.34 KB
/
Dockerfile-full
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
FROM foliant/foliant:pandoc
RUN apt update
RUN apt install --reinstall ca-certificates
COPY ./dependency_files/ /usr/src/app/dependency_files/
# Needed for ImageMagick
RUN apt install -y inkscape
RUN rm -rf /etc/ImageMagick-6/policy.xml \
&& cp /usr/src/app/dependency_files/imagemagick/policy.xml /etc/ImageMagick-6/
# Needed for Puppeteer
RUN apt install -y libasound2
RUN wget -q -O - https://deb.nodesource.com/setup_12.x | bash
RUN apt install -y nodejs
RUN npm install puppeteer@5.2.1
# Needed for BPMN preprocessor
RUN npm install -g bpmn-to-image@0.5.1 --unsafe-perm
# Needed for Argdown preprocessor
RUN npm install -g @argdown/cli
RUN npm install -g @argdown/image-export --unsafe-perm
#######################
# Databases for DBDoc #
#######################
# MS SQL Server
RUN apt-get install -y unixodbc-dev
RUN wget -qO- https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
RUN wget -O /etc/apt/sources.list.d/mssql-release.list https://packages.microsoft.com/config/ubuntu/20.04/prod.list
RUN apt-get update
RUN ACCEPT_EULA=Y apt-get install -y msodbcsql17
# MySQL
RUN apt-get install -y mysql-server libmysqlclient-dev
#######################
RUN npm install -g widdershins
RUN npm install -g mermaid \
&& npm install -g mermaid.cli --unsafe-perm=true --allow-root
RUN npm install -g aglio --unsafe-perm=true --allow-root
RUN npm install -g md-to-pdf --unsafe-perm=true --allow-root
RUN npm install -g raml2html raml2html-full-markdown-theme
RUN mkdir -p /usr/src/app/dependency_files/slate/ \
&& cd /usr/src/app/dependency_files/slate/ \
&& wget -O ./Gemfile https://raw.githubusercontent.com/slatedocs/slate/main/Gemfile \
&& wget -O ./Gemfile.lock https://raw.githubusercontent.com/slatedocs/slate/main/Gemfile.lock \
&& apt install -y zlib1g-dev ruby-full \
&& gem install bundler \
&& bundle install
# Needed for Confluence backend
RUN apt install -y libkrb5-dev
RUN apt install -y graphviz libgraphviz-dev
RUN apt install -y plantuml && wget -O /usr/share/plantuml/plantuml.jar http://sourceforge.net/projects/plantuml/files/plantuml.jar/download
RUN pip3 install --upgrade pip
RUN cd /usr/src/app/dependency_files/python_packages/ \
&& pip3 install -r ./requirements.txt \
&& pip3 install --no-compile -r ./requirements_no_compile.txt
ENV PLANTUML_LIMIT_SIZE 100000
WORKDIR /usr/src/app/