stt / Dockerfile
chiefkarim's picture
fix: chown hf_cache to appuser so refs/main is writable at runtime
1bc5c7d
raw
history blame contribute delete
465 Bytes
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