AndriiPets commited on
Commit
9623a6f
1 Parent(s): 4591542
Files changed (1) hide show
  1. Dockerfile +9 -5
Dockerfile CHANGED
@@ -1,16 +1,20 @@
1
  FROM python:3.9
2
 
 
 
 
 
 
 
 
 
3
  RUN pip install --upgrade pip
4
 
5
  RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
6
 
7
  ENV PATH="/root/.cargo/bin:${PATH}"
8
 
9
- COPY ./requirements.txt /app/requirements.txt
10
-
11
- WORKDIR /app
12
-
13
- RUN pip install -r requirements.txt
14
 
15
  COPY . .
16
 
 
1
  FROM python:3.9
2
 
3
+ WORKDIR /code
4
+
5
+ COPY ./requirements.txt /code/requirements.txt
6
+
7
+ RUN mkdir ./code/cache
8
+
9
+ ENV TRANSFORMERS_CACHE="./code/cache"
10
+
11
  RUN pip install --upgrade pip
12
 
13
  RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
14
 
15
  ENV PATH="/root/.cargo/bin:${PATH}"
16
 
17
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
 
 
 
 
18
 
19
  COPY . .
20