Make "gradle clean buildDocker" work for auth/ldap.
Make "gradle clean buildDocker" work for auth/ldap.

This required a more drastic refactor, by moving all deps to preparing
the Dockerfile, we are sure that the inputDir for the buildDocker tasks
exists.

InnovateUKGitHub/innovation-funding-service,InnovateUKGitHub/innovation-funding-service,InnovateUKGitHub/innovation-funding-service,InnovateUKGitHub/innovation-funding-service,InnovateUKGitHub/innovation-funding-service