2017-10-20 18:20:26 +00:00
|
|
|
FROM maven:3-jdk-8 AS builder
|
|
|
|
|
2017-12-13 09:31:39 +00:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y --no-install-recommends graphviz fonts-wqy-zenhei && \
|
|
|
|
apt-get clean
|
2017-10-20 18:20:26 +00:00
|
|
|
|
|
|
|
COPY pom.xml /app/
|
|
|
|
COPY src /app/src/
|
|
|
|
|
|
|
|
ENV MAVEN_CONFIG=/app/.m2
|
|
|
|
WORKDIR /app
|
|
|
|
RUN mvn package
|
|
|
|
|
|
|
|
########################################################################################
|
|
|
|
|
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
|