changeset 9782:c670bf2ec4b0 3.2.x

Download dependencies before adding sources to leverage build cache
author Tom Gottfried <tom@intevation.de>
date Wed, 26 Apr 2023 16:04:45 +0200
parents 7b7a58a93864
children ae298eccc25c
files docker/Dockerfile.artifacts
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/docker/Dockerfile.artifacts	Fri Mar 31 13:15:31 2023 +0200
+++ b/docker/Dockerfile.artifacts	Wed Apr 26 16:04:45 2023 +0200
@@ -30,12 +30,17 @@
 RUN mvn -q -DskipTests -f framework/pom.xml install
 RUN mvn -q -DskipTests -f http-client/pom.xml install
 
-ADD . river
-
 # If ORACLE=true, the oracle profile in the POM is activated
 ARG ORACLE
+ADD ./backend river/backend
+ADD checkstyle.xml river/
 RUN mvn -q -DskipTests -f river/backend/pom.xml install
 
+# Download dependencies before adding sources to leverage build cache
+ADD artifacts/pom.xml river/artifacts/
+RUN mvn -q -f river/artifacts/pom.xml dependency:go-offline
+ADD ./artifacts river/artifacts
+
 WORKDIR river/artifacts
 
 # Install WSPLGEN

http://dive4elements.wald.intevation.org