From a4f40ab0f81e52ecf6a0ed395d72e905d3658ab3 Mon Sep 17 00:00:00 2001 From: Michael Vorburger Date: Fri, 29 Oct 2021 20:43:57 +0200 Subject: [PATCH 1/2] Revert "rm .dockerignore (#262)" This reverts commit ffc2b864d5f64a50e7e3b50481df500e8d063c2b. --- .dockerignore | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..0c578b01 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,8 @@ +.git +build +# gradle + +# storeys +# scratch + +bin From 934b76e64886e6034365f60461f9e54ad752895f Mon Sep 17 00:00:00 2001 From: Michael Vorburger Date: Fri, 29 Oct 2021 20:55:42 +0200 Subject: [PATCH 2/2] add Dockerfile itself to .dockerignore This makes changes to the Dockerfile not to cause a full rebuild, which it does without this, because of the COPY . /project. --- .dockerignore | 38 +++++++++++++++++++++++++++++++++----- 1 file changed, 33 insertions(+), 5 deletions(-) diff --git a/.dockerignore b/.dockerignore index 0c578b01..09711c01 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,8 +1,36 @@ +# No need for the Dockerfile itself, this makes it much faster to make small changes in it +Dockerfile + +# No need to push big ./.git/ into container, it's not required to build .git -build -# gradle -# storeys -# scratch -bin +# Keep this in sync with .gitignore: + +.settings/ +.project +.classpath + +bin/ +.apt_generated/ +xtend-gen/ +.rpt2_cache/ +.gradle/ +build/ +out/ +.gradletasknamecache +/.nb-gradle/ +dist/ + +.idea/ +*.iml + +node_modules/ +coverage/ +*d.ts + +web/.vertx/file-cache-* + +.vscode/ +.history/ +.vertx/