MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / resolveDockerPlatform

Function resolveDockerPlatform

packages/cli/src/utils/dockerRunArgs.ts:84–91  ·  view source on GitHub ↗
(
  arch: string = process.arch,
  env: NodeJS.ProcessEnv = process.env,
)

Source from the content-addressed store, hash-verified

82 * actual daemon arch instead of relying on local `process.arch`.
83 */
84export function resolveDockerPlatform(
85 arch: string = process.arch,
86 env: NodeJS.ProcessEnv = process.env,
87): string {
88 const override = env.HYPERFRAMES_DOCKER_PLATFORM;
89 if (override && override.trim() !== "") return override.trim();
90 return arch === "arm64" ? "linux/arm64" : "linux/amd64";
91}
92
93// Pure argv builder — the cognitive count tracks the number of optional CLI
94// flags it forwards, not branching depth. Each conditional spread is one

Callers 3

buildDockerRunArgsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected