Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

build-arg's not working for e2b template build command (#644)

David Bateye8fab568dace
diff --git a/.changeset/hungry-pans-change.md b/.changeset/hungry-pans-change.md
new file mode 100644
index 000000000..44a51203a
--- /dev/null
+++ b/.changeset/hungry-pans-change.md
@@ -0,0 +1,5 @@
+---
+'@e2b/cli': patch
+---
+
+build-arg's not working for e2b template build command
diff --git a/packages/cli/src/commands/template/build.ts b/packages/cli/src/commands/template/build.ts
index 26d4c6092..b281ba4f3 100644
--- a/packages/cli/src/commands/template/build.ts
+++ b/packages/cli/src/commands/template/build.ts
@@ -356,7 +356,7 @@ export const buildCommand = new commander.Command('build')
-t docker.${connectionConfig.domain}/e2b/custom-envs/${templateID}:${template.buildID} ${Object.entries(
dockerBuildArgs
)
- .map(([key, value]) => `--build-arg="${key}=${value}"`)
+ .map(([key, value]) => `--build-arg "${key}=${value}"`)
.join(' \\ \n ')}`
console.log(`Building docker image with the following command:\n${asBold(cmd)}\n`)