text-image / Dockerfile
speedartificialintelligence1122's picture
Update Dockerfile
171da0b verified
raw
history blame contribute delete
344 Bytes
FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu20.04
# System setup
RUN apt-get update && apt-get install -y python3-pip git libgl1
# Python dependencies
COPY requirements.txt .
RUN pip3 install --upgrade pip && pip3 install -r requirements.txt
# App
COPY . /app
WORKDIR /app
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]