FROM python:3.11 WORKDIR /code RUN apt-get update && apt-get install -y build-essential COPY ./requirements.txt /code/requirements.txt RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt COPY . . RUN mkdir -p /.cache && chmod -R 777 /.cache ENV HF_HOME=/.cache CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]