CoolFace
Apppublic

DEVX008/Depression-Detection-Backend

sourceHugging Faceupdated 5mo agoView on Hugging Face
0likes
Dockerfile40 linesDownload Raw Back to root
1# Use official Python runtime as a parent image2FROM python:3.10-slim3 4# Install system dependencies needed for Audio/Video processing5# We also install git just in case any pip package needs it6RUN apt-get update && apt-get install -y \7    ffmpeg \8    libsm6 \9    libxext6 \10    git \11    && rm -rf /var/lib/apt/lists/*12 13# Set the working directory in the container14WORKDIR /app15 16# Copy the requirements file into the container17COPY requirements.txt .18 19# Install Python dependencies, including gunicorn for the production server20RUN pip install --no-cache-dir -r requirements.txt21RUN pip install --no-cache-dir gunicorn22 23# Copy the rest of the backend files needed for inference24# We specifically exclude the frontend directory to keep the image lightweight25COPY app.py .26COPY src/ ./src/27COPY Audio/ ./Audio/28COPY Face/ ./Face/29COPY Text/ ./Text/30COPY models/ ./models/31COPY weights/ ./weights/32COPY data/ ./data/33COPY working/ ./working/34 35# Expose port 7860 (Hugging Face Spaces default port)36EXPOSE 786037 38# Command to run the Flask application using Gunicorn39CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--timeout", "120", "app:app"]40