2017-10-20 18:20:26 +00:00
|
|
|
FROM maven:3-jdk-8 AS builder
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
########################################################################################
|
|
|
|
|
2017-04-28 08:53:11 +00:00
|
|
|
FROM jetty
|
|
|
|
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 && \
|
|
|
|
apt-get install -y --no-install-recommends graphviz fonts-wqy-zenhei && \
|
2017-12-13 09:31:39 +00:00
|
|
|
apt-get clean
|
|
|
|
|
|
|
|
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-11-15 13:09:14 +00:00
|
|
|
ARG BASE_URL=plantuml
|
|
|
|
COPY --from=builder /app/target/plantuml.war /var/lib/jetty/webapps/$BASE_URL.war
|