Skip to content

Commit 96e5297

Browse files
committed
Updated
1 parent 317ef01 commit 96e5297

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

etc/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ARG ARCH
1414
ARG OS
1515

1616
RUN apt-get -y update \
17-
&& apt-get -y install software-properties-common curl \
17+
&& apt-get -y install software-properties-common curl libgomp1 \
1818
&& add-apt-repository -y ppa:ubuntuhandbook1/ffmpeg6 \
1919
&& apt-get -y update \
2020
&& apt-get -y install libavformat-dev libavcodec-dev libavdevice-dev libavfilter-dev libavutil-dev libswscale-dev libswresample-dev
@@ -35,10 +35,12 @@ RUN make -j$(nproc)
3535
# Setup runtime container
3636
FROM ${BASE_RUN_CONTAINER} AS runtime
3737
RUN apt-get -y update \
38-
&& apt-get -y install software-properties-common \
38+
&& apt-get -y install software-properties-common libgomp1 \
3939
&& add-apt-repository -y ppa:ubuntuhandbook1/ffmpeg6 \
4040
&& apt-get -y update \
41-
&& apt-get -y install libavformat60 libavcodec60 libavdevice60 libavfilter9 libavutil58 libswscale7 libswresample4
41+
&& apt-get -y install libavformat60 libavcodec60 libavdevice60 libavfilter9 libavutil58 libswscale7 libswresample4 \
42+
&& apt -y remove software-properties-common \
43+
&& apt -y autoremove
4244
COPY --from=build --chmod=755 /app/build/whisper /usr/local/bin/whisper
4345
COPY --from=build --chmod=755 /app/build/api /usr/local/bin/api
4446
COPY --chmod=755 etc/entrypoint.sh .

sys/whisper/generate.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@ package whisper
66
/*
77
#cgo pkg-config: libwhisper
88
#cgo darwin pkg-config: libwhisper-darwin
9-
#cgo linux pkg-config: libwhisper-linux
109
*/
1110
import "C"
1211

1312
// Generate the whisper pkg-config files
1413
// Setting the prefix to the base of the repository
15-
//go:generate go run ../pkg-config --version "0.0.0" --prefix "../.." --cflags "-I$DOLLAR{prefix}/third_party/whisper.cpp/include -I$DOLLAR{prefix}/third_party/whisper.cpp/ggml/include" --libs "-L$DOLLAR{prefix}/third_party/whisper.cpp -lwhisper -lggml -lm -lstdc++" libwhisper.pc
14+
//go:generate go run ../pkg-config --version "0.0.0" --prefix "../.." --cflags "-I$DOLLAR{prefix}/third_party/whisper.cpp/include -I$DOLLAR{prefix}/third_party/whisper.cpp/ggml/include" --libs "-L$DOLLAR{prefix}/third_party/whisper.cpp -lwhisper -lggml -lgomp -lm -lstdc++" libwhisper.pc
1615
//go:generate go run ../pkg-config --version "0.0.0" --libs "-framework Accelerate -framework Metal -framework Foundation -framework CoreGraphics" libwhisper-darwin.pc
17-
//go:generate go run ../pkg-config --version "0.0.0" --cflags "-fopenmp" --libs "-lgomp" libwhisper-linux.pc

0 commit comments

Comments
 (0)