1
0
mirror of https://github.com/octoleo/plantuml-server.git synced 2024-12-22 16:58:54 +00:00
plantuml-server/Dockerfile.jetty

30 lines
593 B
Docker
Raw Permalink Normal View History

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
COPY pom.xml /app/
COPY src /app/src/
ENV MAVEN_CONFIG=/app/.m2
WORKDIR /app
RUN mvn package
########################################################################################
FROM jetty
MAINTAINER D.Ducatel
2017-12-13 09:31:39 +00:00
USER root
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
COPY --from=builder /app/target/plantuml.war /var/lib/jetty/webapps/ROOT.war