Rebased Dockerignore

Close #4165
Fixes #2224
I would print out a warning on stderr if `err != nil`