FROM nvidia/cuda:11.3.1-cudnn8-devel-ubuntu18.04 | |
RUN apt-get update && apt-get install -y \ | |
python3.8.8 \ | |
python3-pip \ | |
&& rm -rf /var/lib/apt/lists/* | |
WORKDIR /code | |
COPY ./requirements.txt /code/requirements.txt | |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
COPY . . | |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] |