-
Notifications
You must be signed in to change notification settings - Fork 483
/
Dockerfile
27 lines (23 loc) · 842 Bytes
/
Dockerfile
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
#---
# name: whisper_trt
# group: audio
# depends: [pytorch, torch2trt, onnxruntime]
# requires: '>=36'
# test: test.py
# notes: TensorRT optimized Whisper ASR from https://github.com/NVIDIA-AI-IOT/whisper_trt
#---
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
ADD https://api.github.com/repos/NVIDIA-AI-IOT/whisper_trt/git/refs/heads/main /tmp/whisper_trt_version.json
RUN apt-get update && \
apt-get install -y --no-install-recommends \
ffmpeg \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean
RUN pip3 install --no-cache-dir --verbose openai-whisper && \
git clone https://github.com/NVIDIA-AI-IOT/whisper_trt /opt/whisper_trt && \
cd /opt/whisper_trt && \
pip3 install -e . && \
mkdir -p ~/.cache && \
ln -s /data/models/whisper ~/.cache/whisper && \
ln -s /data/models/whisper ~/.cache/whisper_trt