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 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
|
|
|
|
2017-10-20 18:20:26 +00:00
|
|
|
COPY --from=builder /app/target/plantuml.war /var/lib/jetty/webapps/ROOT.war
|
|
|
|
|
|
|
|
|