A small shell script to test which files will be included in the docker context
curl https://gist.githubusercontent.com/ineentho/01b4ae87cf5ed10f0e8c3de0e2536b14/raw/test-dockerignore.sh > ~/bin/test-dockerignore && chmod +x ~/bin/test-dockerignore
sudo sh -c "curl https://gist.githubusercontent.com/ineentho/01b4ae87cf5ed10f0e8c3de0e2536b14/raw/test-dockerignore.sh > /usr/local/bin/test-dockerignore && chmod +x /usr/local/bin/test-dockerignore"
In the context directory with a .dockerignore, run test-dockerignore
to get a list of files that will be included