Spaces:
Running
Running
| FROM python:3.10-slim | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| ffmpeg \ | |
| git \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /code | |
| # Copy requirements and install python packages | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --upgrade pip "setuptools<70" wheel && \ | |
| pip install "cython<3.0" "numpy>=1.26.3,<2.0" && \ | |
| pip install --no-build-isolation madmom && \ | |
| pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Copy application files | |
| COPY . . | |
| # Create writable folders with permissions for Hugging Face user 1000 | |
| RUN mkdir -p /code/processed /code/uploads /code/logs && chmod -R 777 /code | |
| # Grant execution rights to start script | |
| RUN chmod +x /code/start.sh | |
| # Run start script | |
| CMD ["/code/start.sh"] | |