Spaces:
Sleeping
Sleeping
File size: 563 Bytes
63a8fa2 8cfc605 63a8fa2 6435dc0 8cfc605 63a8fa2 4a73fa3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
FROM python:3.10-slim
WORKDIR /app
COPY . .
RUN apt-get update && apt-get install -y \
git \
ffmpeg \
libsm6 \
libxext6 \
g++ \
build-essential \
cmake \
python3-dev \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --upgrade pip
RUN pip install torch==2.0.1+cpu torchvision==0.15.2+cpu --index-url https://download.pytorch.org/whl/cpu
RUN pip install -r requirements.txt
RUN pip install 'git+https://github.com/facebookresearch/detectron2.git'
EXPOSE 7860
CMD ["uvicorn", "app3:app", "--host", "0.0.0.0", "--port", "7860"]
|