21 lines
678 B
Docker
21 lines
678 B
Docker
FROM debian:buster as builder
|
|
|
|
RUN apt -y update && apt -y install build-essential wget ffmpeg
|
|
|
|
WORKDIR /tmp/whisper-cpp.git.d
|
|
RUN wget https://github.com/ggerganov/whisper.cpp/archive/refs/tags/v1.2.1.tar.gz \
|
|
&& tar -xf ./*.tar.gz \
|
|
&& mv ./whisper*/ ./git.d
|
|
WORKDIR /tmp/whisper-cpp.git.d/git.d
|
|
RUN make && make samples
|
|
|
|
FROM debian:buster
|
|
RUN apt -y update && apt -y install curl
|
|
COPY --from=builder /tmp/whisper-cpp.git.d/git.d/ /whisper-cpp.git.d/
|
|
WORKDIR /whisper.d
|
|
RUN bash /whisper-cpp.git.d/models/download-ggml-model.sh tiny.en
|
|
|
|
ENTRYPOINT []
|
|
CMD /whisper-cpp.git.d/main -m /whisper-cpp.git.d/models/ggml-tiny.en.bin -f /whisper-cpp.git.d/samples/gb1.wav -t 4
|
|
|