You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jspwiki.apache.org by ju...@apache.org on 2021/11/15 17:06:59 UTC
[jspwiki] branch master updated: Download dependencies on a separate layer
This is an automated email from the ASF dual-hosted git repository.
juanpablo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jspwiki.git
The following commit(s) were added to refs/heads/master by this push:
new 490b0a8 Download dependencies on a separate layer
490b0a8 is described below
commit 490b0a8f40e4e96becb0bb2c2e3d02a7bc39305d
Author: Juan Pablo Santos RodrÃguez <ju...@gmail.com>
AuthorDate: Mon Nov 15 18:06:35 2021 +0100
Download dependencies on a separate layer
so they don't have to be downloaded with every docker build
---
Dockerfile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Dockerfile b/Dockerfile
index 547e736..a47eb4e 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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