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

23 lines
636 B
Docker
Raw Permalink Normal View History

FROM maven:3.6-jdk-8 AS buildertomcat
COPY pom.xml /app/
COPY src /app/src/
WORKDIR /app
RUN mvn --batch-mode --define java.net.useSystemProxies=true package
########################################################################################
2019-04-08 16:45:05 +00:00
FROM tomcat:9.0-jre8-slim
MAINTAINER D.Ducatel
RUN apt-get update && \
2019-04-08 16:45:05 +00:00
apt-get install -y --no-install-recommends graphviz fonts-noto-cjk && \
apt-get clean && rm -rf /var/lib/apt/lists/*
ENV GRAPHVIZ_DOT=/usr/bin/dot
ARG BASE_URL=ROOT
RUN rm -rf /usr/local/tomcat/webapps/$BASE_URL
COPY --from=buildertomcat /app/target/plantuml.war /usr/local/tomcat/webapps/$BASE_URL.war