Spaces:
Build error
Build error
| FROM python:3.11-slim | |
| # Add contrib/non-free repos for graphics libraries | |
| RUN echo "deb http://deb.debian.org/debian trixie contrib non-free" >> /etc/apt/sources.list && \ | |
| echo "deb http://deb.debian.org/debian-security/ trixie-security contrib non-free" >> /etc/apt/sources.list | |
| # Install system dependencies (REPLACED libgl1-mesa-glx with libglx0) | |
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| libedit-dev \ | |
| libffi-dev \ | |
| python3-dev \ | |
| libglx0 \ | |
| libsm6 \ | |
| libxext6 \ | |
| libxrender1 \ | |
| libglib2.0-0 \ | |
| ffmpeg \ | |
| libsndfile1 \ | |
| libsndfile1-dev \ | |
| clang \ | |
| llvm-dev \ | |
| llvm-runtime \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Set working directory | |
| WORKDIR /app | |
| # Install Python dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy app code | |
| COPY . . | |
| # Expose port | |
| EXPOSE 7860 | |
| # Run app | |
| CMD ["python", "app.py"] |