Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
|
@@ -19,9 +19,9 @@ RUN git lfs install
|
|
| 19 |
# Clone the fastsdcpu repository
|
| 20 |
RUN git clone https://github.com/rupeshs/fastsdcpu.git .
|
| 21 |
|
| 22 |
-
# Create
|
| 23 |
-
RUN mkdir -p /app/.cache/huggingface /app/configs && \
|
| 24 |
-
chmod -R 777 /app/.cache /app/configs
|
| 25 |
|
| 26 |
# Set environment variables for Hugging Face cache and OpenVINO telemetry
|
| 27 |
ENV HF_HOME=/app/.cache/huggingface
|
|
@@ -36,7 +36,7 @@ RUN python -m venv env && \
|
|
| 36 |
pip install -r requirements.txt
|
| 37 |
|
| 38 |
# Download a default model (e.g., lcm-lora-sdv1-5)
|
| 39 |
-
RUN git clone https://huggingface.co/latent-consistency/lcm-
|
| 40 |
|
| 41 |
# Configure the model path
|
| 42 |
RUN echo "/models/lcm-lora-sdv1-5" > configs/lcm-lora-models.txt && \
|
|
|
|
| 19 |
# Clone the fastsdcpu repository
|
| 20 |
RUN git clone https://github.com/rupeshs/fastsdcpu.git .
|
| 21 |
|
| 22 |
+
# Create writable directories for cache, configs, and results
|
| 23 |
+
RUN mkdir -p /app/.cache/huggingface /app/configs /app/results && \
|
| 24 |
+
chmod -R 777 /app/.cache /app/configs /app/results
|
| 25 |
|
| 26 |
# Set environment variables for Hugging Face cache and OpenVINO telemetry
|
| 27 |
ENV HF_HOME=/app/.cache/huggingface
|
|
|
|
| 36 |
pip install -r requirements.txt
|
| 37 |
|
| 38 |
# Download a default model (e.g., lcm-lora-sdv1-5)
|
| 39 |
+
RUN git clone https://huggingface.co/latent-consistency/lcm-lataency-sdv1-5 /models/lcm-lora-sdv1-5
|
| 40 |
|
| 41 |
# Configure the model path
|
| 42 |
RUN echo "/models/lcm-lora-sdv1-5" > configs/lcm-lora-models.txt && \
|