This commit is contained in:
2023-02-24 20:39:30 -07:00
parent b48596f576
commit 18ecd196db
3 changed files with 8 additions and 6 deletions
+7
View File
@@ -0,0 +1,7 @@
FROM python:3.11
RUN pip install git+https://git.ohea.xyz/cursorius/pipeline-api#subdirectory=python
COPY build.py /
CMD ["python3", "/build.py"]
+1
View File
@@ -0,0 +1 @@
print("Hello world!")
-6
View File
@@ -1,6 +0,0 @@
import cursorius.executors.docker as docker
print("hello, world from python (#1)")
with docker.DockerBuilder.from_dockerfile("builder", "Dockerfile").run() as d:
print(d.run("/main"))
print("hello, world from python (#2)")