YsnHdn commited on
Commit
5070e42
·
1 Parent(s): c17f760
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -8,8 +8,11 @@ WORKDIR /code
8
 
9
  COPY ./requirements.txt /code/requirements.txt
10
 
11
- # Set the TRANSFORMERS_CACHE environment variable
12
- ENV TRANSFORMERS_CACHE /code/.cache/huggingface/hub
 
 
 
13
 
14
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
15
 
 
8
 
9
  COPY ./requirements.txt /code/requirements.txt
10
 
11
+ # Set the HF_HOME environment variable
12
+ ENV HF_HOME /code/.cache/huggingface
13
+
14
+ # Create cache directory with appropriate permissions
15
+ RUN mkdir -p $HF_HOME && chmod -R 777 $HF_HOME
16
 
17
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
18