WinterGYC commited on
Commit
9f92a97
1 Parent(s): d9c5c9f
Files changed (1) hide show
  1. Dockerfile +10 -6
Dockerfile CHANGED
@@ -3,17 +3,21 @@
3
 
4
  FROM python:3.9
5
 
6
- WORKDIR /code
7
 
8
- RUN chmod -R 777 /code
9
 
10
- ENV TRANSFORMERS_CACHE=/code
11
 
12
- COPY ./requirements.txt /code/requirements.txt
13
 
14
- COPY ./app.py /code/app.py
15
 
16
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
 
 
 
 
17
 
18
  COPY . .
19
 
 
3
 
4
  FROM python:3.9
5
 
6
+ WORKDIR ./code
7
 
8
+ RUN chmod -R 777 ./code
9
 
10
+ RUN mkdir cache
11
 
12
+ ENV TRANSFORMERS_CACHE=./code/cache
13
 
14
+ ENV HF_MODULES_CACHE=./code/cache
15
 
16
+ COPY ./requirements.txt code/requirements.txt
17
+
18
+ COPY ./app.py ./code/app.py
19
+
20
+ RUN pip install --no-cache-dir --upgrade -r ./code/requirements.txt
21
 
22
  COPY . .
23