2021-10-11 15:33:30 +00:00
|
|
|
FROM maven:3-jdk-11-slim AS builder
|
2017-10-20 18:20:26 +00:00
|
|
|
|
|
|
|
COPY pom.xml /app/
|
2021-10-11 15:33:30 +00:00
|
|
|
COPY src/main /app/src/main/
|
2017-10-20 18:20:26 +00:00
|
|
|
|
|
|
|
WORKDIR /app
|
2018-11-15 12:53:00 +00:00
|
|
|
RUN mvn --batch-mode --define java.net.useSystemProxies=true package
|
2017-10-20 18:20:26 +00:00
|
|
|
|
|
|
|
########################################################################################
|
|
|
|
|
2021-10-11 15:33:30 +00:00
|
|
|
FROM jetty:9.4-jre11-slim
|
2017-04-28 08:53:11 +00:00
|
|
|
|
2017-12-13 09:31:39 +00:00
|
|
|
USER root
|
2017-04-28 08:53:11 +00:00
|
|
|
RUN apt-get update && \
|
2021-10-11 15:33:30 +00:00
|
|
|
apt-get install -y --no-install-recommends \
|
|
|
|
fonts-noto-cjk \
|
|
|
|
graphviz \
|
|
|
|
&& \
|
|
|
|
rm -rf /var/lib/apt/lists/* && \
|
2021-05-12 21:25:31 +00:00
|
|
|
/generate-jetty-start.sh
|
2017-12-13 09:31:39 +00:00
|
|
|
|
2021-10-11 15:33:30 +00:00
|
|
|
COPY docker-entrypoint.sh /entrypoint.sh
|
|
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
|
2017-12-13 09:31:39 +00:00
|
|
|
USER jetty
|
2017-04-28 08:53:11 +00:00
|
|
|
|
2021-10-11 15:33:30 +00:00
|
|
|
ENV BASE_URL=ROOT \
|
|
|
|
WEBAPP_PATH=$JETTY_BASE/webapps
|
|
|
|
RUN rm -rf $WEBAPP_PATH && \
|
|
|
|
mkdir -p $WEBAPP_PATH
|
|
|
|
COPY --from=builder /app/target/plantuml.war $WEBAPP_PATH/ROOT.war
|
2018-11-15 12:59:52 +00:00
|
|
|
|
2021-10-11 15:33:30 +00:00
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|