Update Dockerfile
Browse files- Dockerfile +6 -2
Dockerfile
CHANGED
|
@@ -16,8 +16,12 @@ RUN apt-get update && apt-get install -y \
|
|
| 16 |
# Clone the FastSD CPU repository
|
| 17 |
RUN git clone https://github.com/rupeshs/fastsdcpu.git .
|
| 18 |
|
| 19 |
-
#
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
# Upgrade pip and install dependencies
|
| 23 |
RUN pip install --upgrade pip
|
|
|
|
| 16 |
# Clone the FastSD CPU repository
|
| 17 |
RUN git clone https://github.com/rupeshs/fastsdcpu.git .
|
| 18 |
|
| 19 |
+
# Create and set permissions for writable directories
|
| 20 |
+
RUN mkdir -p /.cache/huggingface/hub /app/configs \
|
| 21 |
+
&& chmod -R 777 /.cache /app/configs
|
| 22 |
+
|
| 23 |
+
# Set TRANSFORMERS_CACHE to a writable directory
|
| 24 |
+
ENV TRANSFORMERS_CACHE=/app/.cache/huggingface
|
| 25 |
|
| 26 |
# Upgrade pip and install dependencies
|
| 27 |
RUN pip install --upgrade pip
|