speech / Dockerfile
Haswanth Raj
Create Dockerfile
aee88ee verified
Raw
History Blame Contribute Delete
584 Bytes
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"]