func dockerFileExists()

in cmd/cloudshell_open/docker.go [42:51]


func dockerFileExists(dir string) (bool, error) {
	if _, err := os.Stat(filepath.Join(dir, "Dockerfile")); err != nil {
		if os.IsNotExist(err) {
			return false, nil
		}
		return false, fmt.Errorf("failed to check for Dockerfile in the repo: %v", err)
	}

	return true, nil
}