Skip to content

Commit

Permalink
Ignore the .git directory when determining docker context
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
eds-collabora committed Aug 6, 2021
1 parent f09f3ec commit 74c3952
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.git

0 comments on commit 74c3952

Please sign in to comment.