16 lines
506 B
Docker
16 lines
506 B
Docker
# Local Faster-Whisper. Not published on Ingress.
|
|
FROM python:3.11-slim-bookworm
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends ffmpeg \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
WORKDIR /app
|
|
COPY apps/stt/requirements.txt ./requirements.txt
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
COPY apps/stt/main.py ./main.py
|
|
ENV STT_MODEL=small \
|
|
STT_DEVICE=cpu \
|
|
STT_COMPUTE_TYPE=int8 \
|
|
HF_HOME=/models
|
|
EXPOSE 3040
|
|
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "3040"]
|