fixed issue with requirements.txt not being imported from upstream
This commit is contained in:
+6
-7
@@ -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 \
|
||||||
|
|||||||
Reference in New Issue
Block a user