From 74c39526c003cd1212b08d81e4bdc8ce934b0f53 Mon Sep 17 00:00:00 2001 From: Ed Smith Date: Fri, 6 Aug 2021 17:02:14 +0100 Subject: [PATCH] Ignore the .git directory when determining docker context Otherwise, the simple act of copying the (possibly unchanged) code will always force a cache invalidation in docker. That in turn will mean that go get -t ./... runs every single build (which takes ~30 seconds). --- .dockerignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..6b8710a7 --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +.git