]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
sycl: fix docker image (#14144)
authorSvetlozar Georgiev <redacted>
Fri, 13 Jun 2025 16:32:56 +0000 (17:32 +0100)
committerGitHub <redacted>
Fri, 13 Jun 2025 16:32:56 +0000 (18:32 +0200)
.devops/intel.Dockerfile

index 8cad660523eccdefabaa841b9fe99153a60700c0..9ce80a71eb9501094a753363a1a521b6082e4489 100644 (file)
@@ -49,19 +49,23 @@ COPY --from=build /app/full /app
 
 WORKDIR /app
 
-RUN apt-get update \
-    && apt-get install -y \
-    git \
-    python3 \
-    python3-pip \
-    && pip install --upgrade pip setuptools wheel \
-    && pip install -r requirements.txt \
-    && apt autoremove -y \
-    && apt clean -y \
-    && rm -rf /tmp/* /var/tmp/* \
-    && find /var/cache/apt/archives /var/lib/apt/lists -not -name lock -type f -delete \
-    && find /var/cache -type f -delete
-
+RUN apt-get update && \
+    apt-get install -y \
+        git \
+        python3 \
+        python3-pip \
+        python3-venv && \
+    python3 -m venv /opt/venv && \
+    . /opt/venv/bin/activate && \
+    pip install --upgrade pip setuptools wheel && \
+    pip install -r requirements.txt && \
+    apt autoremove -y && \
+    apt clean -y && \
+    rm -rf /tmp/* /var/tmp/* && \
+    find /var/cache/apt/archives /var/lib/apt/lists -not -name lock -type f -delete && \
+    find /var/cache -type f -delete
+
+ENV PATH="/opt/venv/bin:$PATH"
 
 ENTRYPOINT ["/app/tools.sh"]