Rebased Dockerignore

Close #4165
Fixes #2224
It's not a problem for me, `.dockerignore` is just an helper, if we can't read it, it's ok, we ignore it. @unclejack ?