From 9aca82709dbb366a071964dfcbc964a1479b05df Mon Sep 17 00:00:00 2001 From: Rene Meier Date: Tue, 29 Oct 2024 21:15:19 +0100 Subject: [PATCH] Add cache to mvn package --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f465d7b..d27a988 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ COPY pom.xml /MetFragRelaunched/ RUN printf '# local database file folder \n\ LocalDatabasesFolderForWeb = /vol/file_databases' > /MetFragRelaunched/MetFragWeb/src/main/webapp/resources/settings.properties -RUN mvn -Dhttps.protocols=TLSv1.2 -f MetFragRelaunched clean package -pl MetFragLib -pl MetFragWeb -am -DskipTests +RUN --mount=type=cache,target=/root/.m2 mvn -f MetFragRelaunched clean package -pl MetFragWeb -am -DskipTests FROM alpine:latest AS downloader