WinterGYC
commited on
Commit
•
9f92a97
1
Parent(s):
d9c5c9f
Update
Browse files- Dockerfile +10 -6
Dockerfile
CHANGED
@@ -3,17 +3,21 @@
|
|
3 |
|
4 |
FROM python:3.9
|
5 |
|
6 |
-
WORKDIR
|
7 |
|
8 |
-
RUN chmod -R 777
|
9 |
|
10 |
-
|
11 |
|
12 |
-
|
13 |
|
14 |
-
|
15 |
|
16 |
-
|
|
|
|
|
|
|
|
|
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 |
|