From e97163e2f45990fd67dfb157101c9e19223cffda Mon Sep 17 00:00:00 2001 From: Siddhanth Gupta Date: Wed, 4 Nov 2026 13:39:14 +0530 Subject: [PATCH] fix(docker): build Python node images without a requirements.txt mkconcore's per-node docker build dir only has a requirements.txt when the node's .dir provides one, so `COPY requirements.txt .` failed for every generated Python node. Install numpy and pyzmq, and install requirements.txt only when it is present. --- Dockerfile.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile.py b/Dockerfile.py index f769c95..968db32 100644 --- a/Dockerfile.py +++ b/Dockerfile.py @@ -2,7 +2,8 @@ WORKDIR /src RUN apt-get update && apt-get install -y build-essential g++ libgl1 libx11-6 && rm -rf /var/lib/apt/lists/* -COPY requirements.txt . -RUN pip install --no-cache-dir -r requirements.txt +RUN pip install --no-cache-dir numpy pyzmq COPY . . +# generated node build dirs only have a requirements.txt if the node's .dir provides one +RUN if [ -f requirements.txt ]; then pip install --no-cache-dir -r requirements.txt; fi