mirror of
https://github.com/octoleo/plantuml-server.git
synced 2024-11-14 16:34:08 +00:00
055facac9e
The "special" value of `ROOT` will serve requests on `/`. Any other value should serve on `/$BASE_URL` (as long as there are no slashes in `BASE_URL` at least). The default has been set to `plantuml` to better match documentation in the README.md file. Re #80, may help with #79.
26 lines
555 B
Docker
26 lines
555 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=plantuml
|
|
COPY --from=builder /app/target/plantuml.war /var/lib/jetty/webapps/$BASE_URL.war
|