I am trying to exclude from the Docker image all hidden files (starting with a dot) from all project directories.
To exclude .git and .gitingore : .git*
To exclude all .keep files: **/.keep works
For all hidden files, I tried: **/.* , But this excludes all files containing a period, for example **/*.* .
source share