File size: 520 Bytes
4c0ace6
aed4377
c0d3363
6eb9144
 
aed4377
 
c0d3363
aed4377
 
c0d3363
aed4377
c0d3363
bdba5d1
c0d3363
 
aed4377
c0d3363
e59897f
c0d3363
2ed3866
c0d3363
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from nvidia/cuda:12.1.1-devel-ubuntu22.04

run apt-get update && apt-get install -y \
    python3.11 \
    python3-pip \
    ffmpeg \
    libsndfile1 \
    git \
    && rm -rf /var/lib/apt/lists/*

workdir /app

copy requirements.txt .

run pip install --no-cache-dir torch torchaudio --index-url https://download.pytorch.org/whl/cu121
run pip install --no-cache-dir -r requirements.txt

copy . .

expose 7860

cmd ["gunicorn", "--bind", "0.0.0.0:7860", "app:app", "--workers", "1", "--threads", "4", "--timeout", "600"]