From 5b2ddeccdb1d7c43e0e270958d85a182fa91bc9b Mon Sep 17 00:00:00 2001 From: Quentin Fuxa Date: Fri, 22 Aug 2025 15:37:46 +0200 Subject: [PATCH] correct pip installation error in image build --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e62d5ac..580aa92 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,13 +13,16 @@ RUN apt-get update && \ apt-get install -y --no-install-recommends \ python3 \ python3-pip \ + python3-venv \ ffmpeg \ git \ build-essential \ python3-dev && \ rm -rf /var/lib/apt/lists/* -RUN pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu129 +RUN python3 -m venv /opt/venv +ENV PATH="/opt/venv/bin:$PATH" +RUN pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu129 COPY . .