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

26 lines
601 B
Docker
Raw Permalink Normal View History

FROM maven:3-jdk-11 AS builderjetty
COPY pom.xml /app/
COPY src /app/src/
WORKDIR /app
RUN mvn --batch-mode --define java.net.useSystemProxies=true package
########################################################################################
FROM jetty:9.4-jre11
MAINTAINER D.Ducatel
2017-12-13 09:31:39 +00:00
USER root
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/*
2017-12-13 09:31:39 +00:00
USER jetty
ENV GRAPHVIZ_DOT=/usr/bin/dot
ARG BASE_URL=ROOT
COPY --from=builderjetty /app/target/plantuml.war /var/lib/jetty/webapps/$BASE_URL.war