code: func ParseDockerignore(root string) ([]string, error) {
  	var excludes []string
  	ignore, err := ioutil.ReadFile(filepath.Join(root, ".dockerignore"))
  	if err != nil && !os.IsNotExist(err) {
  		return excludes, fmt.Errorf("error reading .dockerignore: '%s'", err)
  	}
  	return strings.Split(string(ignore), "\n"), nil
  }
docs: // ParseDockerIgnore returns a list of the excludes in the .dockerignore file.
  // extracted from fsouza/go-dockerclient.