1
0
mirror of https://github.com/octoleo/plantuml-server.git synced 2024-06-09 19:52:25 +00:00
plantuml-server/Dockerfile.jetty
Olaf Meeuwissen 73c23724db Use ROOT as the BASE_URL
This fixes a misread of the README.md when preparing 055faca.
2018-12-03 18:54:18 +09:00

26 lines
551 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
ARG BASE_URL=ROOT
COPY --from=builder /app/target/plantuml.war /var/lib/jetty/webapps/$BASE_URL.war