FROM python:3.11 WORKDIR /code WORKDIR /code/temp WORKDIR /nltk_data RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y RUN mkdir -p /code RUN mkdir -p /code/temp RUN mkdir -p /nltk_data USER root RUN chmod -R 777 /nltk_data RUN chmod -R 777 /code RUN chmod -R 777 /code/temp COPY ./requirements.txt /code/requirements.txt COPY ./pondering-5ff7c-c033cfade319.json /code/pondering-5ff7c-c033cfade319.json COPY ./TOKEN.txt /code/TOKEN.txt RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt COPY . . CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]