Skip to content

Instantly share code, notes, and snippets.

@tamoot
Created Aug 1, 2017
Embed
What would you like to do?
Dockerfile.plantuml(うまくいっていない
FROM maven:3-jdk-8
ARG http_proxy
ARG https_proxy
ENV http_proxy ${http_proxy}
ENV https_proxy ${https_proxy}
RUN apt-get update && apt-get install -y --no-install-recommends graphviz fonts-wqy-zenhei fonts-vlgothic && rm -rf /var/lib/apt/lists/*
COPY pom.xml /app/
COPY src /app/src/
ENV MAVEN_CONFIG /app/.m2
# for proxy
COPY ./settings.xml /app/.m2/settings.xml
COPY ./settings.xml /root/.m2/settings.xml
RUN mkdir /app/.m2/repository
WORKDIR /app
RUN mvn dependency:go-offline -Dmaven.repo.local=/app/.m2/repository
#RUN mvn -U install
RUN mvn --offline package -Dmaven.repo.local=/app/.m2/repository -Dmaven.legacyLocalRepo=true
# chmod required to ensure any user can run the app
RUN chmod -R a+w /app
EXPOSE 8080
ENV HOME /app
#CMD java -jar target/dependency/jetty-runner.jar /var/lib/jetty/webapps/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=/plantuml -jar target/dependency/je
CMD mvn --offline jetty:run -Dmaven.repo.local=/app/.m2/repository -Dmaven.legacyLocalRepo=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment