File tree 1 file changed +0
-26
lines changed
1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change 1
- # ### BUILD WHISPER.CPP
2
- # ----------------------------------
3
- FROM nvidia/cuda:11.6.2-devel-ubuntu20.04 AS build
4
-
5
- WORKDIR /usr/local/src
6
- RUN apt update && DEBIAN_FRONTEND=noninteractive apt install -y \
7
- bash git make wget g++ ffmpeg cmake libopenblas-dev
8
- RUN git clone https://github.com/ggml-org/whisper.cpp --depth 1
9
-
10
- # whisper.cpp setup
11
- WORKDIR /usr/local/src/whisper.cpp
12
- RUN WHISPER_CUBLAS=0 make -j
13
- RUN bash ./models/download-ggml-model.sh medium-q8_0
14
-
15
- # ### copy the compiled binaries to the image for prod
16
- # the image above will be discarded
17
- # ----------------------------------
18
1
FROM python:3.11-slim
19
2
20
- # copy whisper
21
- COPY --from=build /usr/local/src/whisper.cpp /whisper
22
- COPY --from=build /lib/*/libgomp.so.1 /whisper/build/src
23
-
24
- # fix some libs
25
- ENV LD_LIBRARY_PATH="/whisper/build/src/:/whisper/build/ggml/src/"
26
-
27
- # ingest-file
28
3
ENV DEBIAN_FRONTEND="noninteractive"
29
4
30
5
LABEL org.opencontainers.image.title="FollowTheMoney File Ingestors"
@@ -130,7 +105,6 @@ RUN echo "deb http://http.us.debian.org/debian stable non-free" >/etc/apt/source
130
105
fonts-droid-fallback fonts-dustin fonts-f500 fonts-fanwood fonts-freefont-ttf \
131
106
fonts-liberation fonts-lmodern fonts-lyx fonts-sil-gentium fonts-texgyre \
132
107
fonts-tlwg-purisa \
133
- ffmpeg \
134
108
# ##
135
109
&& apt-get -qq -y autoremove \
136
110
&& apt-get clean \
You can’t perform that action at this time.
0 commit comments