voice-cloning-backend / Dockerfile
AJ50's picture
Add build-essential to Dockerfile for webrtcvad compilation
abfe39d
raw
history blame
633 Bytes
FROM python:3.10-slim
# Install system dependencies including build tools for webrtcvad
RUN apt-get update && apt-get install -y \
build-essential \
libsndfile1 libsndfile1-dev \
ffmpeg \
git \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy entire project
COPY . .
# Install Python dependencies
RUN pip install --no-cache-dir -r backend/requirements.txt
# Download models during build
RUN cd backend && python download_models.py
# Expose port (HF Spaces uses 7860)
EXPOSE 7860
# Start the application
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "1", "--timeout", "300", "backend.wsgi:app"]