Refactor
This commit is contained in:
@@ -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"]
|
||||||
|
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
print("Hello world!")
|
||||||
@@ -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)")
|
|
||||||
Reference in New Issue
Block a user