File size: 658 Bytes
da59cbe
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
896e60d
da59cbe
 
 
896e60d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
# you will also find guides on how best to write your Dockerfile

FROM ubuntu:22.04
# install curl
RUN apt-get update && apt-get install -y curl && apt-get install -y git && \
    curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash && \
    apt-get install -y git-lfs

WORKDIR /code

RUN git lfs clone https://huggingface.co/AskUI/pta-text-0.1 /code/model/

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

RUN apt-get install -y python3 python3-pip

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

COPY . .

CMD ["python3", "app.py"]