def parse_dockerignore(ignore_file):

    for line in ignore_file:
        line = line.strip()
        if line and not line.startswith("#"):
            yield line
Return a generator of glob patterns to ignore.
dataset/ETHPy150Open duedil-ltd/portainer/portainer/util/parser.py/parse_dockerignore