FROM python:3.10 ENV PYTHONDONTWRITEBYCODE 1 ENV PYTHONBUFFERED 1 ENV TRANSFORMERS_CACHE=/code/.cache/huggingface/transformers RUN pip install --upgrade pip WORKDIR /code ADD . /code RUN chmod -R 777 /code RUN pip install -r requirements.txt COPY . . EXPOSE 7860 CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]