Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
eladcon committed Jun 18, 2024
1 parent bc77d05 commit 2af2422
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
};
Expand Down Expand Up @@ -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 }
Expand Down

0 comments on commit 2af2422

Please sign in to comment.