diff --git a/.cursorius/Dockerfile b/.cursorius/Dockerfile new file mode 100644 index 0000000..4144116 --- /dev/null +++ b/.cursorius/Dockerfile @@ -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"] + diff --git a/.cursorius/build.py b/.cursorius/build.py new file mode 100644 index 0000000..f1a1813 --- /dev/null +++ b/.cursorius/build.py @@ -0,0 +1 @@ +print("Hello world!") diff --git a/.cursorius/cursorius-build.py b/.cursorius/cursorius-build.py deleted file mode 100644 index 32cf269..0000000 --- a/.cursorius/cursorius-build.py +++ /dev/null @@ -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)")