CoolFace
Apppublic

pylord/layout

sourceHugging Faceupdated 11mo agoView on Hugging Face
0likes
Dockerfile22 linesDownload Raw Back to root
1FROM python:3.92 3# ✅ Install system dependencies required for OpenCV4RUN apt-get update && apt-get install -y \5    libgl1 \6    libglib2.0-0 \7    && rm -rf /var/lib/apt/lists/*8 9# Create non-root user (required by HF Spaces)10RUN useradd -m -u 1000 user11USER user12ENV PATH="/home/user/.local/bin:$PATH"13 14WORKDIR /app15 16COPY --chown=user requirements.txt requirements.txt17RUN pip install --no-cache-dir --upgrade -r requirements.txt18 19COPY --chown=user . /app20 21CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]22