How does .dockerignore handle exceptions?
For example, I would like to ignore everything from the src/ directory except for src/web/p
Using my response to another question https://stackoverflow.com/a/51429852/2419069 you can use the following .dockerignore file:
# Ignore everything
**
# Allow /src/web/public directory
!/src/web/public/**
# You can also ignore unnecessary files inside the /src/web/public to make your image even smaller.
**/*~
**/*.log
**/.DS_Store
**/Thumbs.db