MCPcopy
hub / github.com/docker/compose / readDockerignorePatterns

Function readDockerignorePatterns

pkg/watch/dockerignore.go:156–162  ·  view source on GitHub ↗
(r io.Reader)

Source from the content-addressed store, hash-verified

154}
155
156func readDockerignorePatterns(r io.Reader) ([]string, error) {
157 patterns, err := ignorefile.ReadAll(r)
158 if err != nil {
159 return nil, fmt.Errorf("error reading .dockerignore: %w", err)
160 }
161 return patterns, nil
162}
163
164func DockerIgnoreTesterFromContents(repoRoot string, contents string) (*dockerPathMatcher, error) {
165 patterns, err := ignorefile.ReadAll(strings.NewReader(contents))

Callers 1

LoadDockerIgnoreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…