comparison 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
comparison
equal deleted inserted replaced
9781:7b7a58a93864 9782:c670bf2ec4b0
28 RUN hg clone -b $BRANCH $REPO_URL/http-client 28 RUN hg clone -b $BRANCH $REPO_URL/http-client
29 29
30 RUN mvn -q -DskipTests -f framework/pom.xml install 30 RUN mvn -q -DskipTests -f framework/pom.xml install
31 RUN mvn -q -DskipTests -f http-client/pom.xml install 31 RUN mvn -q -DskipTests -f http-client/pom.xml install
32 32
33 ADD . river
34
35 # If ORACLE=true, the oracle profile in the POM is activated 33 # If ORACLE=true, the oracle profile in the POM is activated
36 ARG ORACLE 34 ARG ORACLE
35 ADD ./backend river/backend
36 ADD checkstyle.xml river/
37 RUN mvn -q -DskipTests -f river/backend/pom.xml install 37 RUN mvn -q -DskipTests -f river/backend/pom.xml install
38
39 # Download dependencies before adding sources to leverage build cache
40 ADD artifacts/pom.xml river/artifacts/
41 RUN mvn -q -f river/artifacts/pom.xml dependency:go-offline
42 ADD ./artifacts river/artifacts
38 43
39 WORKDIR river/artifacts 44 WORKDIR river/artifacts
40 45
41 # Install WSPLGEN 46 # Install WSPLGEN
42 ENV WSPLGEN_URL https://wald.intevation.org/frs/download.php/1496/wsplgen-linux-64bit-static.gz 47 ENV WSPLGEN_URL https://wald.intevation.org/frs/download.php/1496/wsplgen-linux-64bit-static.gz

http://dive4elements.wald.intevation.org