Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse filesremoved initial creation of stable-diffusion-webui folder, conflicting with final parts of the app launch.
- Dockerfile +3 -2
Dockerfile
CHANGED
@@ -4,7 +4,7 @@ ENV DEBIAN_FRONTEND=noninteractive
|
|
4 |
|
5 |
# Create user and directories early to leverage caching
|
6 |
RUN adduser --disabled-password --gecos '' user && \
|
7 |
-
mkdir -p /content
|
8 |
chown -R user:user /content
|
9 |
|
10 |
# Install system dependencies efficiently
|
@@ -28,7 +28,8 @@ RUN pip3 install --upgrade pip==23.3.1 && \
|
|
28 |
--pre triton
|
29 |
|
30 |
# Clone repository and apply patches in a single step
|
31 |
-
RUN
|
|
|
32 |
cd stable-diffusion-webui && \
|
33 |
sed -i 's/dict()))/dict())).cuda()/g' repositories/stable-diffusion-stability-ai/ldm/util.py && \
|
34 |
sed -i '/prepare_environment()/a os.system("sed -i -e '\''s/dict()))/dict())).cuda()/g'\'' repositories/stable-diffusion-stability-ai/ldm/util.py")' launch.py && \
|
|
|
4 |
|
5 |
# Create user and directories early to leverage caching
|
6 |
RUN adduser --disabled-password --gecos '' user && \
|
7 |
+
mkdir -p /content && \
|
8 |
chown -R user:user /content
|
9 |
|
10 |
# Install system dependencies efficiently
|
|
|
28 |
--pre triton
|
29 |
|
30 |
# Clone repository and apply patches in a single step
|
31 |
+
RUN rm -rf stable-diffusion-webui && \
|
32 |
+
git clone -b v1.6 https://github.com/camenduru/stable-diffusion-webui && \
|
33 |
cd stable-diffusion-webui && \
|
34 |
sed -i 's/dict()))/dict())).cuda()/g' repositories/stable-diffusion-stability-ai/ldm/util.py && \
|
35 |
sed -i '/prepare_environment()/a os.system("sed -i -e '\''s/dict()))/dict())).cuda()/g'\'' repositories/stable-diffusion-stability-ai/ldm/util.py")' launch.py && \
|