diff docker/Dockerfile.artifacts @ 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 3847836c60b5
children a9641367812c
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