1
0
mirror of https://github.com/octoleo/plantuml-server.git synced 2024-11-18 10:15:11 +00:00
plantuml-server/Dockerfile.jetty

26 lines
555 B
Docker
Raw Normal View History

FROM maven:3-jdk-8 AS builder
COPY pom.xml /app/
COPY src /app/src/
WORKDIR /app
RUN mvn --batch-mode --define java.net.useSystemProxies=true 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
ENV GRAPHVIZ_DOT=/usr/bin/dot
ARG BASE_URL=plantuml
COPY --from=builder /app/target/plantuml.war /var/lib/jetty/webapps/$BASE_URL.war