| FROM ubuntu:20.04 |
| ENV DEBIAN_FRONTEND noninteractive |
|
|
| WORKDIR /code |
|
|
| RUN apt-get update -y && apt-get upgrade -y && apt-get install -y sudo && apt-get install -y python3-pip && pip3 install --upgrade pip |
| RUN apt-get install -y gnupg wget htop sudo git git-lfs software-properties-common build-essential cmake curl wkhtmltopdf |
|
|
| COPY ./requirements.txt /code/requirements.txt |
|
|
| RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt |
| |
| COPY . . |
|
|
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |
|
|