Skip to content

Commit

Permalink
Update build script for whisper.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
mtneug committed Dec 17, 2024
1 parent 5b56fdd commit a9c2eab
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ FROM docker.io/library/eclipse-temurin:17-jdk AS build-whisper-cpp
ARG WHISPER_CPP_VERSION="master"
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ccache \
cmake \
g++ \
gcc \
git \
Expand All @@ -40,12 +42,11 @@ RUN mkdir -p /tmp/whisper.cpp
WORKDIR /tmp/whisper.cpp
RUN git clone https://github.com/ggerganov/whisper.cpp.git . \
&& git checkout "$WHISPER_CPP_VERSION"
RUN make -j \
RUN cmake -B build \
&& cmake --build build --config Release -j $(nproc) \
&& sed -i 's#models_path=.*$#models_path=/usr/share/whisper.cpp/models/#' models/download-ggml-model.sh
RUN mkdir -p out \
&& mv main out/whisper.cpp \
&& mv quantize out/whisper.cpp-quantize \
&& mv server out/whisper.cpp-server \
&& mv build/bin/main out/whisper.cpp \
&& mv models/download-ggml-model.sh out/whisper.cpp-model-download


Expand Down

0 comments on commit a9c2eab

Please sign in to comment.