mirror of
https://github.com/octoleo/plantuml-server.git
synced 2024-11-18 02:05:12 +00:00
23 lines
641 B
Docker
23 lines
641 B
Docker
FROM maven:3.6-jdk-8-slim AS buildertomcat
|
|
|
|
COPY pom.xml /app/
|
|
COPY src /app/src/
|
|
|
|
WORKDIR /app
|
|
RUN mvn --batch-mode --define java.net.useSystemProxies=true package
|
|
|
|
########################################################################################
|
|
|
|
FROM tomcat:9.0-jre8-slim
|
|
MAINTAINER D.Ducatel
|
|
|
|
RUN apt-get update && \
|
|
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
|