depthmap / Dockerfile
MySafeCode's picture
Upload 6 files
e0a1fd2 verified
raw
history blame
471 Bytes
FROM pytorch/pytorch:2.1.0-cuda12.1-cudnn8-runtime
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
libgl1-mesa-glx \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Create temp directory
RUN mkdir -p /tmp/video-bg-remover
# For Hugging Face Spaces
ENV PORT=7860
CMD uvicorn app:app --host 0.0.0.0 --port $PORT