wyoming-whisper-gpu/Dockerfile
Your Name 7132e6b587
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/manual/woodpecker Pipeline was successful
Upgrade whisper and cuda
2024-04-14 05:20:08 -04:00

33 lines
723 B
Docker

FROM nvidia/cuda:12.4.1-devel-ubuntu22.04
# Install Whisper
WORKDIR /usr/src
ARG WHISPER_VERSION='2.0.0'
RUN \
apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
python3 \
python3-dev \
python3-pip \
nvidia-cuda-toolkit \
\
&& pip3 install --no-cache-dir -U \
setuptools \
wheel \
&& pip3 install --no-cache-dir torch \
&& pip3 install --no-cache-dir \
"wyoming-faster-whisper==${WHISPER_VERSION}" \
\
&& apt-get purge -y --auto-remove \
build-essential \
python3-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /
COPY run.sh ./
EXPOSE 10300
ENTRYPOINT ["bash", "/run.sh"]