1
0
mirror of https://github.com/octoleo/plantuml-server.git synced 2024-12-22 08:48:54 +00:00

Remove unneeded packages and environment variables from the builder

This commit is contained in:
Olaf Meeuwissen 2018-11-15 21:32:48 +09:00
parent 401659a4a2
commit f0b05ab711
2 changed files with 0 additions and 12 deletions

View File

@ -1,13 +1,8 @@
FROM maven:3-jdk-8 AS builder
RUN apt-get update && \
apt-get install -y --no-install-recommends graphviz fonts-wqy-zenhei && \
apt-get clean
COPY pom.xml /app/
COPY src /app/src/
ENV MAVEN_CONFIG=/app/.m2
WORKDIR /app
RUN mvn package
@ -25,5 +20,3 @@ RUN apt-get update && \
USER jetty
COPY --from=builder /app/target/plantuml.war /var/lib/jetty/webapps/ROOT.war

View File

@ -1,13 +1,8 @@
FROM maven:3-jdk-8 AS builder
RUN apt-get update && \
apt-get install -y --no-install-recommends graphviz fonts-wqy-zenhei && \
apt-get clean
COPY pom.xml /app/
COPY src /app/src/
ENV MAVEN_CONFIG=/app/.m2
WORKDIR /app
RUN mvn package