Spaces:
Runtime error
Runtime error
update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -7,7 +7,10 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
7 |
|
8 |
COPY . .
|
9 |
|
10 |
-
#
|
|
|
|
|
|
|
11 |
ENV HF_HOME=/app/.cache/huggingface
|
12 |
|
13 |
CMD ["python", "train.py"]
|
|
|
7 |
|
8 |
COPY . .
|
9 |
|
10 |
+
# Create writable cache directory
|
11 |
+
RUN mkdir -p /app/.cache/huggingface && chmod -R 777 /app/.cache
|
12 |
+
|
13 |
+
# Set huggingface cache directory
|
14 |
ENV HF_HOME=/app/.cache/huggingface
|
15 |
|
16 |
CMD ["python", "train.py"]
|