MCPcopy Create free account
hub / github.com/vercel/vercel / isDockerfileRef

Function isDockerfileRef

packages/container/src/util.ts:86–94  ·  view source on GitHub ↗
(ref: string)

Source from the content-addressed store, hash-verified

84 * treating the path as a prebuilt image.
85 */
86export function isDockerfileRef(ref: string): boolean {
87 const base = basename(ref).toLowerCase();
88 return (
89 base === 'dockerfile' ||
90 base === 'containerfile' ||
91 base === 'dockerfile.vercel' ||
92 base === 'containerfile.vercel'
93 );
94}
95
96// Vercel-specific container opt-in markers, auto-discovered when the build
97// entrypoint doesn't name a Dockerfile explicitly (e.g. the `container`

Callers 2

resolveImageHandlerFunction · 0.90
resolveDevImageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected