Download dependencies on a separate layer
so they don't have to be downloaded with every docker build
@@ -21,9 +21,11 @@ WORKDIR /tmp
COPY . .
+RUN ./mvn -B dependency:go-offline
+
RUN set -x \
# fastest, minimum build
- && mvn clean package -pl jspwiki-war,jspwiki-wikipages/en -am -Dmaven.test.skip
+ && mvn -B clean package -pl jspwiki-war,jspwiki-wikipages/en -am -Dmaven.test.skip
FROM tomcat:9.0
