Update Dockerfile
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
@@ -24,6 +24,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
24 |
&& rm -rf /var/lib/apt/lists/* \
|
25 |
&& git lfs install
|
26 |
|
|
|
|
|
|
|
27 |
# ---- Python deps ----
|
28 |
COPY requirements.txt ./
|
29 |
RUN pip install --upgrade pip && pip install -r requirements.txt
|
|
|
24 |
&& rm -rf /var/lib/apt/lists/* \
|
25 |
&& git lfs install
|
26 |
|
27 |
+
# 在 Docker 建置時預先下載模型
|
28 |
+
RUN python -c "from faster_whisper import WhisperModel; WhisperModel('guillaumekln/faster-whisper-large-v2', device='cpu')"
|
29 |
+
|
30 |
# ---- Python deps ----
|
31 |
COPY requirements.txt ./
|
32 |
RUN pip install --upgrade pip && pip install -r requirements.txt
|