1
0
mirror of https://github.com/octoleo/plantuml-server.git synced 2024-11-14 16:34:08 +00:00
plantuml-server/Dockerfile.tomcat
Olaf Meeuwissen 3ce59edba7 Fix rendering of non-sequence diagrams
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.
2018-11-15 21:59:52 +09:00

22 lines
553 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 tomcat:9
MAINTAINER D.Ducatel
RUN apt-get update && \
apt-get install -y --no-install-recommends graphviz fonts-wqy-zenhei && \
apt-get clean
ENV GRAPHVIZ_DOT=/usr/bin/dot
RUN rm -rf /usr/local/tomcat/webapps/ROOT
COPY --from=builder /app/target/plantuml.war /usr/local/tomcat/webapps/ROOT.war