OmniPar / Dockerfile
banao-tech's picture
Update Dockerfile
2e73d26 verified
raw
history blame
625 Bytes
FROM nvidia/cuda:12.2.2-runtime-ubuntu22.04
ENV DEBIAN_FRONTEND=noninteractive
RUN chmod 1777 /tmp \
&& apt update -q && apt install -y ca-certificates wget libgl1 \
&& wget -qO /tmp/cuda-keyring.deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb \
&& dpkg -i /tmp/cuda-keyring.deb && apt update -q \
&& apt install -y --no-install-recommends libcudnn8 libcublas-12-2
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 7860
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"]