-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
60 lines (47 loc) · 1.27 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# download base image ubuntu 20.04
FROM ubuntu:20.04
LABEL maintainer="Till S. Witt <[email protected]>"
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get upgrade -y
# Install PIP
RUN apt-get -y install python3-pip
# Latex/PDF support for Sphinx-docs
RUN apt-get -y install \
latexmk \
texlive-fonts-recommended \
texlive-lang-english \
texlive-lang-french \
texlive-lang-german \
texlive-latex-extra \
texlive-latex-recommended
# install tooling
RUN apt-get -y install \
inotify-tools \
wget
# PlantUML tooling
RUN apt-get -y install \
default-jre \
graphviz
# Install pip components
RUN pip3 install --upgrade \
pip \
recommonmark \
sphinx-rtd-theme \
sphinxcontrib-needs \
sphinxcontrib-plantuml
# make plantuml executable
ADD tools/plantuml /usr/local/bin/
RUN chmod +x /usr/local/bin/plantuml
# adds a local file to the image
ADD /tools/runAfterBoot.sh /tools/
RUN chmod 755 /tools/runAfterBoot.sh
ADD /tools/watch.sh /tools/
RUN chmod 755 /tools/watch.sh
WORKDIR /tools
ADD /tools/plantuml.1.2017.19.jar .
# make root project folder writable to any UID
RUN mkdir /project \
&& chmod 777 /project
WORKDIR /project
# starting the command line
ENTRYPOINT /tools/runAfterBoot.sh