This commit is contained in:
2026-02-14 12:57:27 +01:00
parent 3dd6b22c06
commit 8b71b70570
3 changed files with 211 additions and 26 deletions
+4 -7
View File
@@ -8,6 +8,7 @@ import fs from "fs";
import pLimit from "p-limit";
import { randomUUID } from "crypto";
import { cloneRepo } from "./git";
import tar from "tar-fs";
const docker = new Docker();
@@ -128,13 +129,9 @@ export async function deployApp(
}
try {
const stream = await docker.buildImage(
{
context: deployPath,
src: ["Dockerfile", "."],
},
{ t: imageTag },
);
const stream = await docker.buildImage(tar.pack(deployPath), {
t: imageTag,
});
await new Promise<void>((resolve, reject) => {
docker.modem.followProgress(stream, (err: Error | null) =>