File size: 601 Bytes
fff06af
ac278ab
fff06af
 
 
ac278ab
 
 
 
 
 
 
 
 
fff06af
ac278ab
 
fff06af
 
 
 
 
 
 
 
ac278ab
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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"]