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 tomcat:9
|
|
|
|
MAINTAINER D.Ducatel
|
|
|
|
|
|
|
|
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
|
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
|
|
|
|
RUN rm -rf /usr/local/tomcat/webapps/$BASE_URL
|
|
|
|
COPY --from=builder /app/target/plantuml.war /usr/local/tomcat/webapps/$BASE_URL.war
|