feat: support deep base URLs

This commit is contained in:
Florian Greinacher
2023-01-25 16:35:10 +01:00
committed by PlantUML
parent 6d90304fd7
commit afd8bbcceb
5 changed files with 36 additions and 13 deletions

View File

@@ -17,14 +17,13 @@ RUN apt-get update && \
&& \
rm -rf /var/lib/apt/lists/*
COPY docker-entrypoint.sh /entrypoint.sh
COPY docker-entrypoint.tomcat.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENV BASE_URL=ROOT \
WEBAPP_PATH=$CATALINA_HOME/webapps
ENV WEBAPP_PATH=$CATALINA_HOME/webapps
RUN rm -rf $WEBAPP_PATH && \
mkdir -p $WEBAPP_PATH
COPY --from=builder /app/target/plantuml.war $WEBAPP_PATH/ROOT.war
COPY --from=builder /app/target/plantuml.war /plantuml.war
ENTRYPOINT ["/entrypoint.sh"]
CMD ["catalina.sh", "run"]