@staticmethod
def exclude_paths_from_context(root, exclude, dockerfile):
    """
        * root: path of build context
        * exclude: list of `.dockerignore` patterns
        * dockerfile: path to dockerfile
        * **return:** iterator of all paths (files and directories) not excluded with patterns
                    All paths returned are relative to the root.
        """
    pass
