public static Predicate<String> getDockerfileExistsPredicate() {
        return dockerfilePath -> {
            if (StringUtils.isBlank(dockerfilePath)) {
                return false;
            }
            File dockerfile = new File(dockerfilePath);
            return dockerfile.exists() && dockerfile.isFile();
        };
    }
Build or push required when:
User provides docker file, or tool generates dockerfile
In case of stack as service image need to pull and push the image
image-builder/builder-services/src/main/java/io/hyscale/builder/services/predicates/ImageBuilderPredicates.java