Tar pack
This commit is contained in:
@@ -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) =>
|
||||
|
||||
Reference in New Issue
Block a user