File size: 465 Bytes
ee4ba35
 
 
 
 
 
 
c437a7c
ee4ba35
 
 
8067262
1bc5c7d
3649b6c
897b7c6
ee4ba35
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM fedirz/faster-whisper-server:latest-cpu

ENV WHISPER__MODEL=Systran/faster-whisper-small
ENV WHISPER__INFERENCE_DEVICE=cpu
ENV UVICORN_PORT=7860
ENV HF_HOME=/opt/hf_cache

RUN uv run python -c "\
from huggingface_hub import snapshot_download; \
snapshot_download('Systran/faster-whisper-small')"

RUN useradd -m -u 1000 appuser \
    && chown -R appuser /opt/hf_cache \
    && chmod o+x /root \
    && chown -R appuser /root/faster-whisper-server
USER appuser