File size: 528 Bytes
e45ee80 40d5f8f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
#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"]
|