File size: 391 Bytes
03a8026
 
 
 
c53fb27
 
4d46b95
c53fb27
4d46b95
c53fb27
03a8026
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM python:3.9

WORKDIR /code

COPY ./requirements.txt /code/requirements.txt

RUN mkdir ./.cache

ENV TRANSFORMERS_CACHE="./.cache"

RUN pip install --upgrade pip

RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y

ENV PATH="/root/.cargo/bin:${PATH}"

RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt

COPY . .

EXPOSE 7860

CMD ["flask", "run"]