Rebased Dockerignore

Close #4165
Fixes #2224
You may ignore this comment: I guess there would be less garbage if you used bytes.Split without the string conversion.