Skip to content

Commit 8efe7e1

Browse files
authored
dockerignore: allowlist (#216)
1 parent 2c7209c commit 8efe7e1

File tree

1 file changed

+22
-8
lines changed

1 file changed

+22
-8
lines changed

.dockerignore

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,24 @@
1-
# Ignore dockerfile so re-runs with dockerfile-only fixes don't rebuild
2-
**/Dockerfile
3-
**/target/
1+
# Ignore everything
2+
*
43
**/*.img
54
**/*.diff.craff
6-
.devcontainer.json
7-
# Don't add scripts so that builds dont have to rerun on script changes to those builds
8-
scripts
9-
target
10-
packages
5+
6+
!examples/docker-example
7+
!examples/manual-example
8+
!examples/rsrc
9+
!examples/tutorials
10+
!harness
11+
!src
12+
!tests
13+
!.clang-format
14+
!.gitignore
15+
!.gitleaksignore
16+
!.pre-commit-config.yaml
17+
!build.rs
18+
!Cargo.toml
19+
!Cargo.lock
20+
!config-user.mk
21+
!rust-toolchain.toml
22+
23+
# needed by .github/builder/Dockerfile
24+
!.github/builder

0 commit comments

Comments
 (0)