CoolFace
Apppublic

kritika53245/DataCollectionWebsite2

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
Dockerfile32 linesDownload Raw Back to root
1# Use a base image with Python and OpenCV2FROM python:3.10-slim3 4# Install system dependencies for OpenCV and multimedia5RUN apt-get update && apt-get install -y \6    libgl1-mesa-dev \7    libglib2.0-0 \8    portaudio19-dev \9    ffmpeg \10    libsm6 \11    libxext6 \12    libxrender113 14# Set the working directory15WORKDIR /app16 17# Create the .deepface directory and set permissions18RUN mkdir -p /app/.deepface && chmod -R 777 /app/.deepface19 20# Copy requirements file and install Python packages21COPY requirements.txt .22RUN pip install --no-cache-dir -r requirements.txt23 24# Copy your application code25COPY app.py .26 27# Set DEEPFACE_HOME to the writable directory28ENV DEEPFACE_HOME=/app/.deepface29# The DEEPFACE_HOME environment variable is enough; this is not needed30 31# Command to run the app32CMD ["python", "app.py"]