Fix calling context manager on builder->container

This commit is contained in:
2022-10-23 19:35:18 -06:00
parent 524302f617
commit 4b706be668
+1 -1
View File
@@ -1,6 +1,6 @@
import cursorius.executors.docker as docker
print("hello, world from python (#1)")
with docker.DockerBuilder.from_dockerfile("builder", "Dockerfile") as d:
with docker.DockerBuilder.from_dockerfile("builder", "Dockerfile").run() as d:
print(d.run("/main"))
print("hello, world from python (#2)")