File tree Expand file tree Collapse file tree 1 file changed +4
-14
lines changed
Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -4,29 +4,19 @@ ARG TZ="America/Los_Angeles"
44# ###
55# # build container
66
7- FROM eclipse-temurin:11 AS build
8-
9- # maven needs git
10- RUN apt-get update && apt-get install -y git
11-
12- ADD https://dlcdn.apache.org/maven/maven-3/3.8.8/binaries/apache-maven-3.8.8-bin.tar.gz /
13-
14- RUN cd /opt && tar xzf /apache-maven-3.8.8-bin.tar.gz && mv apache-maven* maven
15-
16- ENV PATH="$PATH:/opt/maven/bin"
7+ FROM maven:3.9-eclipse-temurin-11 AS build
178
189WORKDIR /opt/conciliator
1910
2011COPY pom.xml .
2112
22- RUN mvn dependency:go-offline -B
23-
2413COPY src src
2514
2615ARG skiptests=0
2716
28- RUN if [ "$skiptests" -eq "1" ]; then SKIPTESTS_ARG="-Dmaven.test.skip" ; fi && \
29- mvn package $SKIPTESTS_ARG
17+ RUN --mount=type=cache,target=/root/.m2 \
18+ if [ "$skiptests" -eq "1" ]; then SKIPTESTS_ARG="-Dmaven.test.skip" ; fi && \
19+ mvn clean package $SKIPTESTS_ARG
3020
3121# ###
3222# # application container
You can’t perform that action at this time.
0 commit comments