private String getDockerfilePath(Dockerfile userDockerfile, BuildContext context) {
        String dockerfilePath;
        if (userDockerfile != null) {
            dockerfilePath = dockerfileUtil.getDockerfileAbsolutePath(userDockerfile);
        } else {
            dockerfilePath = context.getDockerfileEntity().getDockerfile().getAbsolutePath();
        }

        return dockerfilePath;
    }
Get docker file path either:
User docker file based on dockerfile in spec or
Tool generated dockerfile

@param userDockerfile
@param context
@return docker file path
image-builder/builder-services/src/main/java/io/hyscale/builder/services/impl/LocalImageBuildPushServiceImpl.java