From f47b38f65d8d13806d1afd00efafb39cb2f55b94 Mon Sep 17 00:00:00 2001 From: James McDowell <23255412+wejrox@users.noreply.github.com> Date: Sun, 16 May 2021 14:32:27 +1000 Subject: [PATCH] Skip tests and run compile in parallel for speed --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 21eaab8819..37701dfc68 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,10 +11,12 @@ WORKDIR /opt/cosmic # Any changes to the pom will affect the entire build, so it should be copied first. COPY pom.xml ./pom.xml # Grab all the dependencies listed in the pom early, since it prevents changes to source code from requiring a complete re-download. -RUN mvn -f ./pom.xml clean dependency:go-offline +# Skip compiling tests since we don't want all the dependecies to be downloaded. +RUN mvn -f ./pom.xml clean dependency:go-offline -Dmaven.test.skip -T 1C # Source code changes may not change dependencies, so it can go last. +# Skip compiling tests since we don't want all the dependecies to be downloaded for plugins. COPY src ./src -RUN mvn -f ./pom.xml clean package +RUN mvn -f ./pom.xml clean package -Dmaven.test.skip -T 1C # # Server creation stage