mirror of
https://github.com/octoleo/plantuml-server.git
synced 2024-12-22 16:58:54 +00:00
Remove unneeded packages and environment variables from the builder
This commit is contained in:
parent
401659a4a2
commit
f0b05ab711
@ -1,13 +1,8 @@
|
|||||||
FROM maven:3-jdk-8 AS builder
|
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 pom.xml /app/
|
||||||
COPY src /app/src/
|
COPY src /app/src/
|
||||||
|
|
||||||
ENV MAVEN_CONFIG=/app/.m2
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN mvn package
|
RUN mvn package
|
||||||
|
|
||||||
@ -25,5 +20,3 @@ RUN apt-get update && \
|
|||||||
USER jetty
|
USER jetty
|
||||||
|
|
||||||
COPY --from=builder /app/target/plantuml.war /var/lib/jetty/webapps/ROOT.war
|
COPY --from=builder /app/target/plantuml.war /var/lib/jetty/webapps/ROOT.war
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,13 +1,8 @@
|
|||||||
FROM maven:3-jdk-8 AS builder
|
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 pom.xml /app/
|
||||||
COPY src /app/src/
|
COPY src /app/src/
|
||||||
|
|
||||||
ENV MAVEN_CONFIG=/app/.m2
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN mvn package
|
RUN mvn package
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user