Although sequence diagrams render fine without, any(?) other diagram type requires the `GRAPHVIZ_DOT` environment variable to be set for the server to produce usable output.
25 lines
528 B
Docker
25 lines
528 B
Docker
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
|
|
|
|
USER root
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends graphviz fonts-wqy-zenhei && \
|
|
apt-get clean
|
|
|
|
USER jetty
|
|
|
|
ENV GRAPHVIZ_DOT=/usr/bin/dot
|
|
|
|
COPY --from=builder /app/target/plantuml.war /var/lib/jetty/webapps/ROOT.war
|