File size: 621 Bytes
0dda2a1
 
0bfcc48
 
0dda2a1
 
 
 
99a8494
 
 
3bc8654
 
99a8494
9d445f4
 
 
3bc8654
88d2fdc
 
ef6d7ea
3bc8654
706993d
0dda2a1
fd759f4
044550c
ef6d7ea
 
 
 
0dda2a1
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM python:3.10-slim

ENV HOME /app

WORKDIR /app

COPY . /app

RUN apt-get -y update && apt-get -y upgrade

RUN apt-get install -y \
    build-essential \
    cmake \
    poppler-utils \
    ffmpeg \
    libsm6 \
    libxext6 \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/* 

RUN mkdir -p /app/nltk_data && chmod -R 777 /app/nltk_data
    
RUN pip install --no-cache-dir -r requirements.txt

RUN python -m nltk.downloader -d /app/nltk_data all

RUN chmod -R 777 /app

RUN mkdir -p /app/.cache/paddle && chmod -R 777 /app/.cache

EXPOSE 7860

CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]