From dd438f9b36f46d01c8eea5b3b5540507bdd88ad1 Mon Sep 17 00:00:00 2001 From: "Michael Vorburger.ch" Date: Tue, 2 Jul 2019 08:37:09 +0200 Subject: [PATCH] add suitable .dockerignore This reduces the `docker build` time spent in `STEP 6: COPY . fineract` from about 6m to 3m, because it avoids copying locally built artifacts into the container (which we don't need there, we're just about to re-build them in the container anyway). This also provides better isolation from the local dev environment and the should lead to more reproducible container builds. --- .dockerignore | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 000000000..e51bc30b0 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +build/* +.gradle/*