File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ RUN export DEBIAN_FRONTEND=noninteractive \
1010 ca-certificates \
1111 gcc \
1212 python3-dev \
13- libsndfile1 \
1413 && rm -rf /var/lib/apt/lists/*
1514
1615RUN git clone https://github.com/FFmpeg/FFmpeg.git --depth 1 --branch n6.1.1 --single-branch /FFmpeg-6.1.1
Original file line number Diff line number Diff line change @@ -43,6 +43,13 @@ FROM swaggerapi/swagger-ui:v5.9.1 AS swagger-ui
4343FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04
4444
4545ENV PYTHON_VERSION=3.10
46+
47+ RUN export DEBIAN_FRONTEND=noninteractive \
48+ && apt-get -qq update \
49+ && apt-get -qq install --no-install-recommends \
50+ libsndfile1 \
51+ && rm -rf /var/lib/apt/lists/*
52+
4653ENV POETRY_VENV=/app/.venv
4754
4855RUN export DEBIAN_FRONTEND=noninteractive \
@@ -79,6 +86,11 @@ COPY --from=swagger-ui /usr/share/nginx/html/swagger-ui-bundle.js swagger-ui-ass
7986RUN poetry install
8087RUN $POETRY_VENV/bin/pip install torch==1.13.1+cu117 -f https://download.pytorch.org/whl/torch
8188
89+ RUN $POETRY_VENV/bin/pip install pandas transformers nltk pyannote.audio
90+ RUN git clone --depth 1 https://github.com/m-bain/whisperX.git \
91+ && cd whisperX \
92+ && $POETRY_VENV/bin/pip install -e .
93+
8294EXPOSE 9000
8395
8496CMD whisper-asr-webservice
You can’t perform that action at this time.
0 commit comments