Fix calling context manager on builder->container
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import cursorius.executors.docker as docker
|
import cursorius.executors.docker as docker
|
||||||
|
|
||||||
print("hello, world from python (#1)")
|
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(d.run("/main"))
|
||||||
print("hello, world from python (#2)")
|
print("hello, world from python (#2)")
|
||||||
|
|||||||
Reference in New Issue
Block a user