CoolFace
Apppublic

nermadie/2.5D_Depth_Studio

sourceHugging Faceupdated 8mo agoView on Hugging Face
0likes
Dockerfile34 linesDownload Raw Back to root
1# Lightweight base; CPU-friendly. Use a CUDA base on Spaces if you request a GPU runtime.2FROM python:3.10-slim3 4ENV PYTHONDONTWRITEBYTECODE=1 \5    PYTHONUNBUFFERED=1 \6    PIP_DISABLE_PIP_VERSION_CHECK=1 \7    HF_HOME=/app/.cache/hf \8    TRANSFORMERS_CACHE=/app/.cache/hf/transformers \9    MPLCONFIGDIR=/app/.cache/matplotlib10 11WORKDIR /app12 13# System deps needed by OpenCV + image codecs14RUN apt-get update && apt-get install -y --no-install-recommends \15    build-essential \16    ffmpeg \17    libsm6 \18    libxext6 \19    libgl1 \20    git \21    && rm -rf /var/lib/apt/lists/*22 23# Install Python deps24COPY requirements.txt ./requirements.txt25RUN pip install --no-cache-dir -r requirements.txt26 27# Copy application code28COPY . ./29 30EXPOSE 786031 32# Hugging Face Spaces expect the app on port 786033CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--proxy-headers"]34