Spaces:
Paused
Paused
File size: 741 Bytes
1599053 c273980 4054540 c273980 1599053 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | FROM nvidia/cuda:12.1.1-cudnn8-runtime-ubuntu22.04
WORKDIR /app
RUN apt-get update && apt-get install -y \
python3.10 \
python3.10-distutils \
python3.10-venv \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
RUN curl https://bootstrap.pypa.io/get-pip.py | python3.10
# Force python + pip to use 3.10
RUN ln -sf /usr/bin/python3.10 /usr/bin/python
RUN ln -sf /usr/local/bin/pip /usr/bin/pip
# Verify version (important)
RUN python --version
COPY requirements.txt .
# RUN pip install --upgrade pip
RUN pip install -r requirements.txt
COPY . .
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
# CMD ["python", "model_loader.py"]
# CMD ["sh", "-c", "uvicorn app:app --host 0.0.0.0 --port $PORT"]
|