Skip to content

Commit 8210e5d

Browse files
committed
add .dockerignore file
Add a .dockerignore file that ignores hidden directories. On MacOS or other environments that run a VM for container building, copying the build context can take quite a bit of time. Currently, ./.git, ./.cache, ./proto/.build, and ./proto/.protoc amount to over 150MB of context that is not needed for builds to succed. The vendor dir is still passed to the build context. Signed-off-by: Blaine Gardner <[email protected]>
1 parent 98d2901 commit 8210e5d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# ignore dot directories to speed up docker builds where context must be copied
2+
./.*
3+
./proto/.*/

0 commit comments

Comments
 (0)