Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
@@ -6,8 +6,9 @@ COPY ./requirements.txt /code/requirements.txt
|
|
6 |
|
7 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
8 |
|
9 |
-
# Create a writable cache directory
|
10 |
-
RUN mkdir -p /code/.cache/huggingface
|
|
|
11 |
|
12 |
# Set environment variables for Hugging Face cache directory
|
13 |
ENV HF_HOME=/code/.cache/huggingface
|
|
|
6 |
|
7 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
8 |
|
9 |
+
# Create a writable cache directory and set permissions
|
10 |
+
RUN mkdir -p /code/.cache/huggingface/hub && \
|
11 |
+
chmod -R 777 /code/.cache/huggingface
|
12 |
|
13 |
# Set environment variables for Hugging Face cache directory
|
14 |
ENV HF_HOME=/code/.cache/huggingface
|