// ReadDockerignore reads the .dockerignore file in the context directory and
// returns the list of paths to exclude
ReadDockerignore reads the .dockerignore file in the context directory and
returns the list of paths to exclude
// ReadDockerignore reads the . dockerignore file in the context directory and // returns the list of paths to exclude
func readDockerignore(dockerignore string) ([]string, error) {
	var excludes []string
	f, err := os.Open(dockerignore)
	switch {
	case os.IsNotExist(err):
		return excludes, nil
	case err != nil:
		return nil, err
	}
	defer f.Close()
	return readDockerignorePatterns(f, dockerignore)
}
func readDockerignore ( dockerignore string ) ( [ ] string , error ) { var excludes [ ] string f , err := os . Open ( dockerignore ) switch { case os . IsNotExist ( err ) : return excludes , nil case err != nil : return nil , err } defer f . Close ( ) return readDockerignorePatterns ( f , dockerignore ) }
ReadDockerignore reads the .dockerignore file in the context directory and
returns the list of paths to exclude
ReadDockerignore reads the . dockerignore file in the context directory and returns the list of paths to exclude