File size: 584 Bytes
aee88ee
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM python:3.10-slim

# System setup: install ffmpeg for your audio conversion pipelines
RUN apt-get update && apt-get install -y \
    ffmpeg \
    && rm -rf /var/lib/apt/lists/*

WORKDIR /app

# Set up a generic writable cache target for the container
RUN mkdir -p /tmp/SpeechRecognition/Cache && chmod -R 777 /tmp/SpeechRecognition

COPY ./requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt

COPY . /app

# Expose standard Hugging Face container port
CMD ["uvicorn", "speech_server:app", "--host", "0.0.0.0", "--port", "7860"]