-
Notifications
You must be signed in to change notification settings - Fork 0
/
static.Dockerfile
70 lines (66 loc) · 2.08 KB
/
static.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
61
62
63
64
65
66
67
68
69
70
FROM eclipse-temurin:11.0.18_10-jre-jammy
ARG GRAPHVIZ_VERSION=9.0.0
RUN apt-get update && apt-get install --no-install-recommends --yes \
libx11-6 \
libxmu6 \
libxt6 \
liblab-gamut1 \
fonts-liberation \
libpango1.0-dev \
libpangocairo-1.0-0 \
libcairo2-dev \
libcairo2 \
libglib2.0-0 \
libgd-dev \
zlib1g-dev \
libpangoft2-1.0-0 \
build-essential \
g++-11 \
libgvc6 \
libjpeg9 \
giflib-tools \
fonts-freefont-ttf \
fonts-noto-cjk \
gsfonts \
ghostscript
RUN wget https://gitlab.com/api/v4/projects/4207231/packages/generic/graphviz-releases/${GRAPHVIZ_VERSION}/graphviz-${GRAPHVIZ_VERSION}.tar.gz -O graphviz.tar.gz && \
mkdir -p graphviz-src && \
tar xvzf graphviz.tar.gz --strip-components=1 -C graphviz-src && \
cd graphviz-src && \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--disable-python \
--disable-silent-rules \
--disable-dependency-tracking \
--disable-ltdl-install \
--enable-static=yes \
--enable-shared=no \
--enable-ltdl \
--enable-sharp=no \
--enable-go=no \
--enable-guile=no \
--enable-java=no \
--enable-lua=yes \
--enable-ocaml=no \
--enable-perl=no \
--enable-php=no \
--enable-python3=no \
--enable-r=no \
--enable-ruby=no \
--enable-tcl=no \
--without-included-ltdl \
--with-gdk-pixbuf=yes \
--with-ipsepcola=yes \
--with-jpeg \
--with-libgd=yes \
--with-pangocairo=yes \
--with-rsvg=yes \
--with-x && \
make && make install
RUN chmod +x ./graphviz-src/cmd/dot/dot_static && \
./graphviz-src/cmd/dot/dot_static --version && \
echo "digraph G {Hello->World}" | ./graphviz-src/cmd/dot/dot_static -Tpng > hello.png && \
echo "digraph G {Hello->World}" | ./graphviz-src/cmd/dot/dot_static -Tjpeg > hello.jpeg && \
echo "digraph G {Hello->World}" | ./graphviz-src/cmd/dot/dot_static -Tsvg > hello.svg && \
echo "digraph G {Hello->World}" | ./graphviz-src/cmd/dot/dot_static -Tpdf > hello.pdf