bm_speech / Dockerfile
Gaoussin's picture
Upload 3 files
7642f85 verified
raw
history blame contribute delete
442 Bytes
# Base image
FROM python:3.10-slim
# System dependencies
RUN apt-get update && apt-get install -y git ffmpeg libsndfile1 && rm -rf /var/lib/apt/lists/*
# Set workdir
WORKDIR /code
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy FastAPI app
COPY app.py .
# Expose default HF port
EXPOSE 7860
# Start FastAPI
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]