FROM python:3.9 | |
WORKDIR /code | |
COPY requirements.txt /code . | |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
COPY . . | |
#RUN pip install transformers==4.6.1 | |
RUN mkdir ./.cache | |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |