Exit with code 1 in case of error for `docker build`
Merge pull request #3355 from creack/fix_build_exit

Exit with code 1 in case of error for `docker build`