Skip to content

Commit f4981dd

Browse files
committed
Correct Dockerfile
1 parent 4015bce commit f4981dd

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

1615
RUN git clone https://github.com/FFmpeg/FFmpeg.git --depth 1 --branch n6.1.1 --single-branch /FFmpeg-6.1.1

Dockerfile.gpu

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ FROM swaggerapi/swagger-ui:v5.9.1 AS swagger-ui
4343
FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04
4444

4545
ENV 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+
4653
ENV POETRY_VENV=/app/.venv
4754

4855
RUN export DEBIAN_FRONTEND=noninteractive \
@@ -79,6 +86,11 @@ COPY --from=swagger-ui /usr/share/nginx/html/swagger-ui-bundle.js swagger-ui-ass
7986
RUN poetry install
8087
RUN $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+
8294
EXPOSE 9000
8395

8496
CMD whisper-asr-webservice

0 commit comments

Comments
 (0)