2020-07-13 19:37:48 +00:00
|
|
|
FROM maven:3-jdk-11 AS buildertomcat
|
2017-10-20 18:20:26 +00:00
|
|
|
|
|
|
|
COPY pom.xml /app/
|
|
|
|
COPY src /app/src/
|
|
|
|
|
|
|
|
WORKDIR /app
|
2018-11-15 12:53:00 +00:00
|
|
|
RUN mvn --batch-mode --define java.net.useSystemProxies=true package
|
2017-10-20 18:20:26 +00:00
|
|
|
|
|
|
|
########################################################################################
|
|
|
|
|
2020-11-12 04:34:57 +00:00
|
|
|
FROM tomcat:9.0-jdk11-openjdk-slim as graphviz
|
|
|
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y wget binutils gcc make ghostscript groff g++ fontconfig fontconfig-config fonts-dejavu-core fonts-noto-cjk file libexpat1-dev libcairo2-dev libpango1.0-dev
|
|
|
|
|
|
|
|
RUN mkdir /root/build && \
|
|
|
|
cd /root/build && \
|
|
|
|
wget -O - https://www2.graphviz.org/Packages/stable/portable_source/graphviz-2.44.1.tar.gz | gzip -d | tar xvf - && \
|
|
|
|
cd graphviz-2.44.1 && \
|
|
|
|
./configure --prefix /usr && \
|
|
|
|
make -j 4 && \
|
|
|
|
make DESTDIR=/root/install/ install-strip
|
|
|
|
|
|
|
|
########################################################################################
|
|
|
|
|
2020-07-13 19:37:48 +00:00
|
|
|
FROM tomcat:9.0-jdk11-openjdk-slim
|
2017-04-28 08:53:11 +00:00
|
|
|
MAINTAINER D.Ducatel
|
|
|
|
|
|
|
|
RUN apt-get update && \
|
2020-11-12 04:34:57 +00:00
|
|
|
apt-get install -y --no-install-recommends fonts-noto-cjk libexpat1 libcairo2 libpango1.0 libpangoft2-1.0 libpangocairo-1.0 && \
|
2019-03-18 07:40:25 +00:00
|
|
|
rm -rf /var/lib/apt/lists/*
|
2017-04-28 08:53:11 +00:00
|
|
|
|
2018-11-15 12:59:52 +00:00
|
|
|
ENV GRAPHVIZ_DOT=/usr/bin/dot
|
|
|
|
|
2018-12-03 09:54:18 +00:00
|
|
|
ARG BASE_URL=ROOT
|
2018-12-03 09:30:47 +00:00
|
|
|
RUN rm -rf /usr/local/tomcat/webapps/$BASE_URL
|
2019-03-31 22:51:41 +00:00
|
|
|
COPY --from=buildertomcat /app/target/plantuml.war /usr/local/tomcat/webapps/$BASE_URL.war
|
2020-11-12 04:34:57 +00:00
|
|
|
|
|
|
|
COPY --from=graphviz /root/install/usr/bin/dot /usr/bin/
|
|
|
|
COPY --from=graphviz /root/install/usr/lib/ /usr/lib/
|
|
|
|
|
|
|
|
RUN dot -c
|
|
|
|
|