From a4583be44b0a406f3cf312097eec0b7c19d5be4b Mon Sep 17 00:00:00 2001 From: Nick DeLuca Date: Wed, 7 Aug 2024 11:20:17 -0700 Subject: [PATCH] fix(docker): Ignore local build and lint cache (#1994) These should not be replicated to docker contexts as they are local to the build host. In addition, the golangci-lint currently doesn't assume the host user nor add other group read permissions when writing files, so this causes permission errors when other docker processes attempt to copy the files. --- .dockerignore | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.dockerignore b/.dockerignore index 37dd96d2..edadf75c 100644 --- a/.dockerignore +++ b/.dockerignore @@ -11,5 +11,10 @@ docs/ networks/ scratch/ +# Ignore build cache directories to avoid +# errors when addings these to docker images +build/.cache +build/.golangci-lint + go.work go.work.sum