mirror of
https://github.com/octoleo/plantuml-server.git
synced 2024-11-17 17:55:12 +00:00
73c23724db
This fixes a misread of the README.md when preparing 055faca
.
23 lines
581 B
Docker
23 lines
581 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 tomcat:9
|
|
MAINTAINER D.Ducatel
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends graphviz fonts-wqy-zenhei && \
|
|
apt-get clean
|
|
|
|
ENV GRAPHVIZ_DOT=/usr/bin/dot
|
|
|
|
ARG BASE_URL=ROOT
|
|
RUN rm -rf /usr/local/tomcat/webapps/$BASE_URL
|
|
COPY --from=builder /app/target/plantuml.war /usr/local/tomcat/webapps/$BASE_URL.war
|