diff --git a/dist/index.js b/dist/index.js index 3a1e577c..d2cb36ca 100644 --- a/dist/index.js +++ b/dist/index.js @@ -5180,7 +5180,7 @@ var ContainerAppHelper = /** @class */ (function () { return [4 /*yield*/, toolHelper.which("docker", true)]; case 2: dockerTool = _a.sent(); - command = "run --rm -v " + appSourcePath + ":/app " + ORYX_CLI_IMAGE + " /bin/bash -c oryx dockerfile /app | head -n 1 | sed 's/ARG RUNTIME=//' >> /app/oryx-runtime.txt"; + command = "run --rm -v " + appSourcePath + ":/app " + ORYX_CLI_IMAGE + " /bin/bash -c \"oryx dockerfile /app | head -n 1 | sed 's/ARG RUNTIME=//' >> /app/oryx-runtime.txt\""; return [4 /*yield*/, util.executeAndThrowIfError(dockerTool + " " + command) // Read the temp file to get the runtime stack into a variable ]; diff --git a/src/ContainerAppHelper.ts b/src/ContainerAppHelper.ts index 7216e154..72b60343 100644 --- a/src/ContainerAppHelper.ts +++ b/src/ContainerAppHelper.ts @@ -362,7 +362,7 @@ export class ContainerAppHelper { try { let dockerTool: string = await toolHelper.which("docker", true); // Use 'oryx dockerfile' command to determine the runtime stack to use and write it to a temp file - let command = `run --rm -v ${appSourcePath}:/app ${ORYX_CLI_IMAGE} /bin/bash -c oryx dockerfile /app | head -n 1 | sed 's/ARG RUNTIME=//' >> /app/oryx-runtime.txt` + let command = `run --rm -v ${appSourcePath}:/app ${ORYX_CLI_IMAGE} /bin/bash -c \"oryx dockerfile /app | head -n 1 | sed 's/ARG RUNTIME=//' >> /app/oryx-runtime.txt\"` await util.executeAndThrowIfError(`${dockerTool} ${command}`) // Read the temp file to get the runtime stack into a variable