CoolFace
Apppublic

yzh70/depth-pro

sourceHugging Faceotherupdated 1y agoView on Hugging Face
0likes
Dockerfile39 linesDownload Raw Back to root
1FROM python:3.9-slim2 3# Install system dependencies4RUN apt-get update && apt-get install -y \5    git \6    curl \7    libgl1-mesa-glx \8    libglib2.0-0 \9    && rm -rf /var/lib/apt/lists/*10 11# Set working directory12WORKDIR /app13 14# Clone your GitHub project15RUN git clone https://github.com/apple/ml-depth-pro.git .16 17# Clone YOLO model18RUN curl -L https://github.com/ultralytics/assets/releases/download/v8.3.0/yolo11s.pt -o /app/yolo11s.pt19 20# Copy your actual app code21COPY . /app22 23# Install Python dependencies24RUN pip install --upgrade pip25RUN pip install -r requirements.txt26RUN pip install -e .27 28# Install huggingface CLI and download model29RUN pip install huggingface-hub30RUN huggingface-cli download --local-dir checkpoints apple/DepthPro31 32# Set Ultralytics config directory to suppress warnings33ENV YOLO_CONFIG_DIR=/tmp/Ultralytics34 35# Expose the Hugging Face expected port36EXPOSE 786037 38# Start FastAPI with Uvicorn39CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]