Check that dockerignore is compatibile with cog (#2210)
* Check that dockerignore is compatibile with cog
* We can’t ignore the .cog tmp directory
* Parse the ignore file and check if it ignores
the .cog directory
* If it does, fail and alert the user
* Use iferr golang pattern
* Use filepath Join rather than path