.dockerignore = strict superset of .gitignore, not DRY, but ok...

This commit is contained in:
Ralf Vogler 2025-05-25 11:09:10 +02:00
parent 6f3dbdbe14
commit 3065ad1c5e
2 changed files with 6 additions and 1 deletions

View file

@ -1,6 +1,12 @@
node_modules/
data/
*.env
megalinter-reports/
# the above is just copied from .gitignore - violating DRY...
# however, generally, we want .dockerignore to be a *strict* superset of .gitignore, so we can't just `ln -s .gitignore .dockerignore`
# could generate this in CI and append the extra entries from below, but then it wouldn't work for local builds without running some script...
# also, the rules are slightly different: https://zzz.buzz/2018/05/23/differences-of-rules-between-gitignore-and-dockerignore/
.gitignore
.github/

1
.gitignore vendored
View file

@ -1,5 +1,4 @@
node_modules/
data/
*.env
megalinter-reports/