private void validateDockerfilePath(String dockerfilePath) throws HyscaleException {
        if (!ImageBuilderPredicates.getDockerfileExistsPredicate().test(dockerfilePath)) {
            WorkflowLogger.startActivity(ImageBuilderActivity.IMAGE_BUILD);
            WorkflowLogger.endActivity(Status.FAILED);
            File dockerfile = new File(dockerfilePath);
            throw new HyscaleException(ImageBuilderErrorCodes.DOCKERFILE_NOT_FOUND, dockerfile.getAbsolutePath());
        }
    }
Source image is either the stack image being used as service image or
Local image build through dockerfile

@param serviceSpec
@param buildContext
@return source image name
@throws HyscaleException
image-builder/builder-services/src/main/java/io/hyscale/builder/services/impl/LocalImageBuildPushServiceImpl.java