#Use official Python image FROM python:3.10-slim # System dependencies RUN apt-get update && apt-get install -y ffmpeg git && rm -rf /var/lib/apt/lists/* # Set working directory WORKDIR /app # Copy files COPY . . # Install Python dependencies RUN pip install --upgrade pip RUN pip install -r requirements.txt # Clone OpenVoice if not pip installable RUN git clone https://github.com/myshell-ai/OpenVoice.git && \ pip install -e OpenVoice # Expose port for Gradio EXPOSE 7860 # Launch the app CMD ["python", "app.py"]