MCPcopy Create free account
hub / github.com/firebase/firebase-tools / from

Method from

src/frameworks/compose/driver/docker.ts:18–26  ·  view source on GitHub ↗
(image: string, name?: string)

Source from the content-addressed store, hash-verified

16 private lastStage = "";
17
18 from(image: string, name?: string): DockerfileBuilder {
19 this.dockerfile += `FROM ${image}`;
20 if (name) {
21 this.dockerfile += ` AS ${name}`;
22 this.lastStage = name;
23 }
24 this.dockerfile += "\n";
25 return this;
26 }
27
28 fromLastStage(name: string): DockerfileBuilder {
29 return this.from(this.lastStage, name);

Callers 15

fromLastStageMethod · 0.95
utils.spec.tsFile · 0.80
extractEntriesFromBufferFunction · 0.80
applyTargetMethod · 0.80
getScopesFunction · 0.80
setScopesFunction · 0.80
parseUnsetArgsFunction · 0.80
isValidBase64Function · 0.80
secretAccessFunction · 0.80
endpointsAreUniqueFunction · 0.80
validateSecretVersionsFunction · 0.80

Calls

no outgoing calls

Tested by 10

writeFunction · 0.64
readFunction · 0.64
generateInstanceListFunction · 0.64
generateIosAppListFunction · 0.64
generateAndroidAppListFunction · 0.64
generateWebAppListFunction · 0.64
generateCloudProjectListFunction · 0.64
uploadFileFunction · 0.64