Skip to content

Commit

Permalink
chore(dockerignore): use white-list approach
Browse files Browse the repository at this point in the history
Use white-list approach to exclude unneeded but currently included
files and directories.

Signed-off-by: Leonardo Di Giovanna <[email protected]>
  • Loading branch information
ekoops authored and poiana committed Oct 4, 2024
1 parent cbb8ae6 commit 120ae6f
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
event-generator
dist/
events/k8saudit/yaml/bundle.go
evtgen-docgen
# Ignore everything
*

# Allow files and directories
!/Makefile
!/main.go
!/go.mod
!/go.sum
!/cmd
!/pkg
!/tools/file-bundler
!/events

# Exclude files and directories inside allowed directories
**/*.md
**/*_test.go

0 comments on commit 120ae6f

Please sign in to comment.