Spaces:
Paused
Paused
fix: create embeddings/log/datasets dirs; make kohya_ss clone resilient; keep embeddings dir flag
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
|
@@ -25,11 +25,14 @@ RUN git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git ${WEBU
|
|
| 25 |
|
| 26 |
# Optional extensions
|
| 27 |
# RUN git clone https://github.com/Mikubill/sd-webui-controlnet ${WEBUI_DIR}/extensions/sd-webui-controlnet
|
| 28 |
-
RUN git clone https://github.com/bmaltais/kohya_ss ${WEBUI_DIR}/extensions/kohya_ss
|
| 29 |
|
| 30 |
# Create embeddings directory with correct permissions
|
| 31 |
USER root
|
| 32 |
-
RUN mkdir -p ${WEBUI_DIR}/embeddings
|
|
|
|
|
|
|
|
|
|
| 33 |
USER user
|
| 34 |
|
| 35 |
RUN pip install --no-cache-dir --upgrade pip wheel setuptools \
|
|
|
|
| 25 |
|
| 26 |
# Optional extensions
|
| 27 |
# RUN git clone https://github.com/Mikubill/sd-webui-controlnet ${WEBUI_DIR}/extensions/sd-webui-controlnet
|
| 28 |
+
RUN git clone https://github.com/bmaltais/kohya_ss ${WEBUI_DIR}/extensions/kohya_ss || true
|
| 29 |
|
| 30 |
# Create embeddings directory with correct permissions
|
| 31 |
USER root
|
| 32 |
+
RUN mkdir -p ${WEBUI_DIR}/embeddings \
|
| 33 |
+
/app/log/ti \
|
| 34 |
+
/app/datasets \
|
| 35 |
+
&& chown -R user:user /app
|
| 36 |
USER user
|
| 37 |
|
| 38 |
RUN pip install --no-cache-dir --upgrade pip wheel setuptools \
|