YsnHdn commited on
Commit
c17f760
1 Parent(s): 318f973

Refacor : Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -3,10 +3,14 @@
3
 
4
  FROM python:3.9
5
 
 
6
  WORKDIR /code
7
 
8
  COPY ./requirements.txt /code/requirements.txt
9
 
 
 
 
10
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
11
 
12
  COPY . .
 
3
 
4
  FROM python:3.9
5
 
6
+
7
  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
 
16
  COPY . .