MCPcopy
hub / github.com/Dokploy/dokploy / getBuildCommand

Function getBuildCommand

packages/server/src/utils/builders/index.ts:40–76  ·  view source on GitHub ↗
(application: ApplicationNested)

Source from the content-addressed store, hash-verified

38>;
39
40export const getBuildCommand = async (application: ApplicationNested) => {
41 let command = "";
42
43 if (application.sourceType !== "docker") {
44 const { buildType } = application;
45 switch (buildType) {
46 case "nixpacks":
47 command = getNixpacksCommand(application);
48 break;
49 case "heroku_buildpacks":
50 command = getHerokuCommand(application);
51 break;
52 case "paketo_buildpacks":
53 command = getPaketoCommand(application);
54 break;
55 case "static":
56 command = getStaticCommand(application);
57 break;
58 case "dockerfile":
59 command = getDockerCommand(application);
60 break;
61 case "railpack":
62 command = getRailpackCommand(application);
63 break;
64 }
65 }
66
67 if (
68 application.registry ||
69 application.buildRegistry ||
70 application.rollbackRegistry
71 ) {
72 command += await uploadImageRemoteCommand(application);
73 }
74
75 return command;
76};
77
78export const mechanizeDockerContainer = async (
79 application: ApplicationNested,

Callers 4

deployApplicationFunction · 0.90
rebuildApplicationFunction · 0.90
deployPreviewApplicationFunction · 0.90

Calls 7

getNixpacksCommandFunction · 0.90
getHerokuCommandFunction · 0.90
getPaketoCommandFunction · 0.90
getStaticCommandFunction · 0.90
getDockerCommandFunction · 0.90
getRailpackCommandFunction · 0.90
uploadImageRemoteCommandFunction · 0.90

Tested by

no test coverage detected