Arseniy Savin commited on
Commit
f896d57
·
1 Parent(s): 5217f76

Fix Dockerfile to use a hardcoded model name for Whisper.cpp server execution, removing ARG parameterization for model selection.

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -4
Dockerfile CHANGED
@@ -19,9 +19,7 @@ RUN make \
19
  -E 'CFLAGS += -D_POSIX_SOURCE -D_GNU_SOURCE' \
20
  -E 'CXXFLAGS += -D_POSIX_SOURCE -D_GNU_SOURCE'
21
 
22
- ARG MODEL=small.en
23
-
24
- RUN bash ./models/download-ggml-model.sh ${MODEL}
25
 
26
  FROM alpine:3.21 AS runtime
27
 
@@ -32,4 +30,4 @@ WORKDIR /app
32
  COPY --from=builder /build/whisper.cpp/build/ /build/whisper.cpp/build/
33
  COPY --from=builder /build/whisper.cpp/models/ ./models/
34
 
35
- CMD sh -c "/build/whisper.cpp/build/bin/whisper-server -m /app/models/ggml-${MODEL}.bin --host 0.0.0.0 --port ${PORT:-7860} --flash-attn"
 
19
  -E 'CFLAGS += -D_POSIX_SOURCE -D_GNU_SOURCE' \
20
  -E 'CXXFLAGS += -D_POSIX_SOURCE -D_GNU_SOURCE'
21
 
22
+ RUN bash ./models/download-ggml-model.sh small.en
 
 
23
 
24
  FROM alpine:3.21 AS runtime
25
 
 
30
  COPY --from=builder /build/whisper.cpp/build/ /build/whisper.cpp/build/
31
  COPY --from=builder /build/whisper.cpp/models/ ./models/
32
 
33
+ CMD sh -c "/build/whisper.cpp/build/bin/whisper-server -m /app/models/ggml-small.en.bin --host 0.0.0.0 --port ${PORT:-7860} --flash-attn"