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:41:34 +00:00
|
|
|
RUN mvn --batch-mode 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
|
|
|
|
2017-08-31 12:13:35 +00:00
|
|
|
RUN rm -rf /usr/local/tomcat/webapps/ROOT
|
2017-10-20 18:20:26 +00:00
|
|
|
COPY --from=builder /app/target/plantuml.war /usr/local/tomcat/webapps/ROOT.war
|