File size: 628 Bytes
ca28016
 
8dc721a
ca28016
 
 
 
 
 
 
 
 
 
 
eaac964
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Dockerfile for Hugging Face CPU Space
FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
    git ffmpeg espeak-ng \
    && rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade pip && \
    pip install --no-cache-dir -r requirements.txt && \
    pip install --no-cache-dir "ctranslate2>=4.3.1" "faster-whisper>=1.0.3" gunicorn
COPY . .
EXPOSE 7860
ENV ASR_MODEL_ID="Systran/faster-distil-whisper-large-v3"
ENV CT2_USE_CUDA="0"
CMD bash -lc "gunicorn -b 0.0.0.0:${PORT:-7860} --workers 1 --timeout 120 home.chezy.golem_flask_server:app"