Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
|
@@ -31,5 +31,8 @@ COPY --chown=user:user . /app/
|
|
| 31 |
# Expose port 7860 (Hugging Face requirement)
|
| 32 |
EXPOSE 7860
|
| 33 |
|
| 34 |
-
# Start the FastAPI application with
|
| 35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
# Expose port 7860 (Hugging Face requirement)
|
| 32 |
EXPOSE 7860
|
| 33 |
|
| 34 |
+
# Start the FastAPI application with 2 workers.
|
| 35 |
+
# Each worker loads ~1.5GB of ML models (SenseVoice + BERT + VAD).
|
| 36 |
+
# With 16GB RAM this is safe (~3GB total), and 2 workers provides real
|
| 37 |
+
# concurrency benefit for CPU-bound STT when multiple users transcribe simultaneously.
|
| 38 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "2", "--timeout-keep-alive", "75"]
|