2020-07-13 19:37:48 +00:00
|
|
|
FROM maven:3-jdk-11 AS builderjetty
|
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-07-13 19:37:48 +00:00
|
|
|
FROM jetty:9.4-jre11
|
2017-04-28 08:53:11 +00:00
|
|
|
MAINTAINER D.Ducatel
|
|
|
|
|
2017-12-13 09:31:39 +00:00
|
|
|
USER root
|
|
|
|
|
2017-04-28 08:53:11 +00:00
|
|
|
RUN apt-get update && \
|
2019-04-08 16:45:05 +00:00
|
|
|
apt-get install -y --no-install-recommends graphviz fonts-noto-cjk && \
|
|
|
|
apt-get clean && rm -rf /var/lib/apt/lists/*
|
2017-12-13 09:31:39 +00:00
|
|
|
|
|
|
|
USER jetty
|
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
|
2019-03-31 22:51:41 +00:00
|
|
|
COPY --from=builderjetty /app/target/plantuml.war /var/lib/jetty/webapps/$BASE_URL.war
|