Add support for .dockerignore

Fixes #2224