FROM python:3.9-slim WORKDIR /code 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 ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]