fixed issue with requirements.txt not being imported from upstream

This commit is contained in:
itsnachocheese
2025-12-14 17:15:11 -08:00
parent ac2b6cefac
commit a533c67f44
+6 -7
View File
@@ -71,10 +71,14 @@ ENV PATH=/opt/venv/bin:$PATH
RUN pip install --upgrade pip && \ RUN pip install --upgrade pip && \
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm5.7 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 # Install project dependencies
WORKDIR /app WORKDIR /app
COPY requirements.txt . RUN pip install -r /app/webui/requirements.txt
RUN pip install -r requirements.txt
# Install xformers with ROCm support or handle gracefully # Install xformers with ROCm support or handle gracefully
RUN pip install xformers --index-url https://download.pytorch.org/whl/rocm5.7 || \ 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 && \ pip install xformers --no-deps && \
echo "xformers installed but may not have full ROCm acceleration") 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 # Install additional dependencies that might be needed
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
libgl1-mesa-glx \ libgl1-mesa-glx \