Skip to content

Commit 86f8b9e

Browse files
authored
cleanup: tweak dockerignore to rebuild images less often (#6237)
1 parent b5d8bef commit 86f8b9e

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
.idea/
66
.build/
77
_build/
8+
build-out/
89
build-output/
910
cmake-build-*/
1011
cmake-out/

ci/.dockerignore

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
# Note: This file does not prevent us from accessing other files from within a
66
# running docker *container*. Those will be availble from our mounted volume.
77
# https://docs.docker.com/engine/reference/builder/#dockerignore-file
8+
9+
# Start by ignoring everything, then only allow a few things.
810
*
9-
!*.*
10-
!etc
1111

12-
# Ignore staging files for the kokoro/install builds
13-
kokoro/install/ccache-contents/
12+
# Don't ignore a few scripts that are invoked from within Dockerfiles.
13+
!/install-cloud-sdk.sh
14+
!/install-bazel.sh
15+
!/etc/install-config.sh

0 commit comments

Comments
 (0)