File size: 417 Bytes
1191524
 
17db5d7
 
 
aa15668
1191524
4f0b562
1191524
4f0b562
403a9a4
 
17db5d7
 
 
 
1191524
 
 
17db5d7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM python:3.10-slim

RUN apt-get update && apt-get install -y \
    git ffmpeg libsndfile1 \
 && apt-get clean

WORKDIR /app
COPY . /app

RUN pip install --upgrade pip
RUN pip install --extra-index-url https://download.pytorch.org/whl/cpu -r requirements.txt

# Set numba cache location to avoid HF Spaces crash
ENV NUMBA_CACHE_DIR=/tmp/numba_cache
ENV NUMBA_DISABLE_CACHE=1

EXPOSE 7860

CMD ["python", "app.py"]