Spaces:
Sleeping
Sleeping
Arseniy Savin commited on
Commit ·
c6b83a2
1
Parent(s): 4c88453
Update CMD in Dockerfile to use environment variable for port and simplify command execution
Browse files- Dockerfile +1 -1
Dockerfile
CHANGED
|
@@ -31,4 +31,4 @@ WORKDIR /app
|
|
| 31 |
COPY --from=builder /build/whisper.cpp/build/ /build/whisper.cpp/build/
|
| 32 |
COPY --from=builder /build/whisper.cpp/models/ ./models/
|
| 33 |
|
| 34 |
-
CMD
|
|
|
|
| 31 |
COPY --from=builder /build/whisper.cpp/build/ /build/whisper.cpp/build/
|
| 32 |
COPY --from=builder /build/whisper.cpp/models/ ./models/
|
| 33 |
|
| 34 |
+
CMD sh -c "/build/whisper.cpp/build/bin/whisper-server -m /app/models/ggml-tiny.en.bin --host 0.0.0.0 --port ${PORT:-7860} -t $(nproc) -p $(nproc) --print-realtime -ng"
|