From a533c67f44500d5ecaea1f5e616a9138ab9ffe44 Mon Sep 17 00:00:00 2001 From: itsnachocheese Date: Sun, 14 Dec 2025 17:15:11 -0800 Subject: [PATCH] fixed issue with requirements.txt not being imported from upstream --- Dockerfile | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1bc4c20..9a1939b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -71,10 +71,14 @@ ENV PATH=/opt/venv/bin:$PATH RUN pip install --upgrade pip && \ pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm5.7 +# Clone the upstream repository +RUN git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git /app/webui && \ + cd /app/webui && \ + git checkout v1.7.0 + # Install project dependencies WORKDIR /app -COPY requirements.txt . -RUN pip install -r requirements.txt +RUN pip install -r /app/webui/requirements.txt # Install xformers with ROCm support or handle gracefully RUN pip install xformers --index-url https://download.pytorch.org/whl/rocm5.7 || \ @@ -82,11 +86,6 @@ RUN pip install xformers --index-url https://download.pytorch.org/whl/rocm5.7 || pip install xformers --no-deps && \ echo "xformers installed but may not have full ROCm acceleration") -# Clone the upstream repository -RUN git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git /app/webui && \ - cd /app/webui && \ - git checkout v1.7.0 - # Install additional dependencies that might be needed RUN apt-get update && apt-get install -y --no-install-recommends \ libgl1-mesa-glx \