forked from plantuml/plantuml-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (19 loc) · 858 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM maven:3-jdk-11
RUN apt-get update && apt-get install -y --no-install-recommends graphviz fonts-wqy-zenhei && rm -rf /var/lib/apt/lists/*
COPY settings.xml /root/.m2/settings.xml
COPY pom.xml /app/
COPY src /app/src/
ENV MAVEN_CONFIG=/app/.m2
# chmod required to ensure any user can run the app
RUN mkdir /app/.m2 && chmod -R a+w /app
COPY settings.xml /app/.m2/settings.xml
WORKDIR /app
RUN mvn package
EXPOSE 8080
EXPOSE 9095
ENV HOME /app
FROM jetty
RUN java -jar "/usr/local/jetty/start.jar" --add-to-startd=https
CMD java -Djetty.contextpath=/ -jar target/dependency/jetty-runner.jar target/plantuml.war
# To run with debugging enabled instead
#CMD java -Dorg.eclipse.jetty.util.log.class=org.eclipse.jetty.util.log.StdErrLog -Dorg.eclipse.jetty.LEVEL=DEBUG -Djetty.contextpath=/ -jar target/dependency/jetty-runner.jar target/plantuml.war