1
0
mirror of https://github.com/octoleo/plantuml-server.git synced 2024-12-22 08:48:54 +00:00
plantuml-server/Dockerfile.jetty
David Ducatel ae00bcc116 update build process
Using multi stage build in dockerfile
2017-10-20 20:20:26 +02:00

24 lines
586 B
Docker

FROM maven:3-jdk-8 AS builder
RUN apt-get update && apt-get install -y --no-install-recommends graphviz fonts-wqy-zenhei && rm -rf /var/lib/apt/lists/*
COPY pom.xml /app/
COPY src /app/src/
ENV MAVEN_CONFIG=/app/.m2
WORKDIR /app
RUN mvn package
########################################################################################
FROM jetty
MAINTAINER D.Ducatel
RUN apt-get update && \
apt-get install -y --no-install-recommends graphviz fonts-wqy-zenhei && \
rm -rf /var/lib/apt/lists/*
COPY --from=builder /app/target/plantuml.war /var/lib/jetty/webapps/ROOT.war