Spaces:
Running
Running
Commit
·
d026afb
1
Parent(s):
375dbf3
Upd Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -19,8 +19,8 @@ ENV HF_HOME="/home/user/.cache/huggingface"
|
|
| 19 |
ENV SENTENCE_TRANSFORMERS_HOME="/home/user/.cache/huggingface/sentence-transformers"
|
| 20 |
|
| 21 |
# Create cache directories and ensure permissions
|
| 22 |
-
RUN mkdir -p
|
| 23 |
-
chown -R user:user /home/user/.cache/huggingface
|
| 24 |
|
| 25 |
# Run the model download script
|
| 26 |
RUN python /app/download_model.py
|
|
|
|
| 19 |
ENV SENTENCE_TRANSFORMERS_HOME="/home/user/.cache/huggingface/sentence-transformers"
|
| 20 |
|
| 21 |
# Create cache directories and ensure permissions
|
| 22 |
+
RUN mkdir -p /app/model_cache && \
|
| 23 |
+
chown -R user:user /app/model_cache /home/user/.cache/huggingface
|
| 24 |
|
| 25 |
# Run the model download script
|
| 26 |
RUN python /app/download_model.py
|