WinterGYC commited on
Commit
1ab8c3e
1 Parent(s): 9f92a97
Files changed (1) hide show
  1. Dockerfile +6 -6
Dockerfile CHANGED
@@ -3,21 +3,21 @@
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
 
 
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