File size: 648 Bytes
48b5e1d
 
 
 
a3747a6
bc6205b
0a7200f
 
bc6205b
a3747a6
48b5e1d
 
 
 
 
 
 
 
 
 
 
 
 
626ce4b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM python:3.9-slim

WORKDIR /code

ENV TRANSFORMERS_CACHE /tmp/transformers_cache
RUN mkdir -p $TRANSFORMERS_CACHE && chmod -R 777 $TRANSFORMERS_CACHE

ENV MPLCONFIGDIR /tmp/matplotlib_config
RUN mkdir -p $MPLCONFIGDIR && chmod -R 777 $MPLCONFIGDIR

RUN apt-get update && apt-get install -y --no-install-recommends \
    build-essential gcc \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

RUN pip install --no-cache-dir Cython

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

COPY ./multi_lingual.py ./urdu_punkt.py ./main.py /code/
COPY ./models/ /code/models/

CMD ["python", "main.py"]