From 2af242264e8304a0b77f94080092e902bc5de487 Mon Sep 17 00:00:00 2001 From: Elad Cohen Date: Tue, 18 Jun 2024 15:54:02 +0300 Subject: [PATCH] wip --- python/util.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python/util.js b/python/util.js index 941eafeb..1fe5aa90 100644 --- a/python/util.js +++ b/python/util.js @@ -20,7 +20,8 @@ const createMD5ForProject = (requirementsFile, nodePath = "", path = "", handler const tryInspect = (imageName) => { try { - execSync(`docker inspect ${imageName}`); + console.log("Checking for image", imageName); + execSync(`docker inspect ${imageName}`, { stdio: "pipe" }); return true; } catch {} }; @@ -67,7 +68,8 @@ RUN pip install -r /app/requirements.txt` writeFileSync(dockerfile, dockerfileContent); } - execSync(`docker build -t ${imageName} -f ${dockerfile} ${path}`, + console.log("Building image", imageName, dockerfile, path); + execSync(`docker build -t ${imageName} -f "${dockerfile}" "${path}"`, { cwd: __dirname, env: { HOME: homeEnv, PATH: pathEnv }