2017-04-28 08:53:11 +00:00
|
|
|
FROM maven:3-jdk-8
|
2017-01-26 07:32:35 +00:00
|
|
|
|
2017-04-28 08:53:11 +00:00
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends graphviz fonts-wqy-zenhei && rm -rf /var/lib/apt/lists/*
|
2017-04-26 20:32:53 +00:00
|
|
|
|
2017-04-28 08:53:11 +00:00
|
|
|
COPY pom.xml /app/
|
|
|
|
COPY src /app/src/
|
|
|
|
|
|
|
|
ENV MAVEN_CONFIG=/app/.m2
|
|
|
|
WORKDIR /app
|
|
|
|
RUN mvn package
|
|
|
|
|
|
|
|
# chmod required to ensure any user can run the app
|
|
|
|
RUN mkdir /app/.m2 && chmod -R a+w /app
|
|
|
|
EXPOSE 8080
|
|
|
|
ENV HOME /app
|
|
|
|
|
|
|
|
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
|