I am trying to negate a pattern in a .dockerignore. The Globbing is done using Go's filepath.Match rules. After checking the source, it seems we can negate a pattern by using ^ character.
.dockerfile
*
^Dockerfile
^web-app/dist
However, when i docker build, I have the following error:
Dockerfile was excluded by .dockerignore pattern '*'
Do you know if its possible to accomplish what I want ?
Thanks