Rebased Dockerignore

Close #4165
Fixes #2224
@unclejack I don't think the complexity was referring to the code complexity but to behavior complexity and unknown weird side effects that we would have to maintain. The idea was to stay conservative and later add globbing if really necessary.

@LK4D4 Do you need the folder in which those sql and php files are, in the Dockerfile context?