def _gen_docker_ignore(self, path, prefix=None):
        # Exclude .git from the docker build context
        content = '{}/.git'.format(prefix) if prefix else '.git'
        try:
            with open('{}/.dockerignore'.format(path), 'w') as f:
                f.write(content)
        except __HOLE__:
            pass
dataset/ETHPy150Open openstack/solum/solum/worker/app_handlers/base.py/BaseHandler._gen_docker_ignore