Spaces:
Running
Running
| FROM python:3.8-slim | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| ffmpeg \ | |
| libsndfile1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Clone repository | |
| RUN git clone https://huggingface.co/spaces/HerzaJ/spleeter . | |
| # Install Python requirements | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Set environment variables | |
| ENV NUMBA_CACHE_DIR=/tmp | |
| ENV MODEL_PATH=/tmp/pretrained_models | |
| ENV PORT=7860 | |
| # Create temp directories with proper permissions | |
| RUN mkdir -p /tmp/pretrained_models && chmod -R 777 /tmp | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] |