File size: 375 Bytes
f62ea2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM python:3.9

WORKDIR /code

RUN apt-get update && apt-get install -y \

    ffmpeg \
    python3-pip \
    && rm -rf /var/lib/apt/lists/*
RUN pip install -U yt-dlp

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# 预下载模型
RUN python -c "import whisper; whisper.load_model('tiny')"

COPY . .

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