changeset 9781:7b7a58a93864 3.2.x

Leverage build cache for downloading dependencies
author Tom Gottfried <tom@intevation.de>
date Fri, 31 Mar 2023 13:15:31 +0200
parents a517ed28f133
children c670bf2ec4b0
files docker/Dockerfile.gwt-client
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/docker/Dockerfile.gwt-client	Fri Mar 31 12:26:50 2023 +0200
+++ b/docker/Dockerfile.gwt-client	Fri Mar 31 13:15:31 2023 +0200
@@ -29,6 +29,10 @@
     -DartifactId=smartgwt-lgpl -DgroupId=com.isomorphic.smartgwt.lgpl \
     -Dpackaging=jar
 
+# Download dependencies before adding sources to leverage build cache
+ADD gwt-client/pom.xml river/gwt-client/
+RUN mvn -q -f river/gwt-client/pom.xml dependency:go-offline
+
 ADD checkstyle.xml river/
 ADD gwt-client river/gwt-client/
 
@@ -36,6 +40,7 @@
         --exclude=OpenLayers-2.11/doc --exclude=OpenLayers-2.11/tests \
         --exclude=OpenLayers-2.11/examples -xf OpenLayers-2.11.tar.gz
 RUN rm OpenLayers-2.11.tar.gz
+
 RUN mvn -q -f river/gwt-client/pom.xml package && \
     mv river/gwt-client/target/gwt-client-*.war \
         /usr/share/tomcat/webapps/d4e-river.war

http://dive4elements.wald.intevation.org