MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / isDockerfile

Function isDockerfile

graph-ui/src/architecture/container-source.ts:15–15  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

13export interface ContainerReading { topology: ContainerTopology; projects: ServiceProject[]; warnings: string[]; filesRead: number }
14export const isComposePath = (path: string) => /(^|\/)(?:docker-)?compose(?:[.-][\w.-]+)?\.ya?ml$/i.test(path);
15const isDockerfile = (path: string) => /(^|\/)(?:Dockerfile(?:[.][\w.-]+)?|[\w.-]+\.Dockerfile)$/i.test(path);
16const isCode = (path: string) => /\.(?:py|js|jsx|ts|tsx|cs|go|java|kt|rs|rb|php|c|cc|cpp|ex|exs)$/i.test(path)
17 && !/(^|\/)(?:node_modules|vendor|vendored|test|tests|fixtures|dist|build)\//.test(path)
18 && !/\.(?:min|test|spec)\.[^.]+$/.test(path);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected