Spaces:
Runtime error
Runtime error
| FROM python:3.9 | |
| # Install system dependencies for OpenCV | |
| RUN apt-get update && apt-get install -y \ | |
| libgl1-mesa-glx \ | |
| libglib2.0-0 \ | |
| libsm6 \ | |
| libxrender1 \ | |
| libxext6 \ | |
| ffmpeg \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /code | |
| # Copy and install Python dependencies | |
| COPY requirements.txt /code/ | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| # Copy all application files | |
| COPY . /code/ | |
| # Set environment variables | |
| ENV PYTHONUNBUFFERED=1 | |
| # Run the application | |
| CMD ["python", "app.py"] |