Create Dockerfile
Browse files- Dockerfile +25 -0
Dockerfile
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use official Python image
|
2 |
+
FROM python:3.10-slim
|
3 |
+
|
4 |
+
# System dependencies
|
5 |
+
RUN apt-get update && apt-get install -y ffmpeg git && rm -rf /var/lib/apt/lists/*
|
6 |
+
|
7 |
+
# Set working directory
|
8 |
+
WORKDIR /app
|
9 |
+
|
10 |
+
# Copy files
|
11 |
+
COPY . .
|
12 |
+
|
13 |
+
# Install Python dependencies
|
14 |
+
RUN pip install --upgrade pip
|
15 |
+
RUN pip install -r requirements.txt
|
16 |
+
|
17 |
+
# Clone OpenVoice if not pip installable
|
18 |
+
RUN git clone https://github.com/myshell-ai/OpenVoice.git && \
|
19 |
+
pip install -e OpenVoice
|
20 |
+
|
21 |
+
# Expose port for Gradio
|
22 |
+
EXPOSE 7860
|
23 |
+
|
24 |
+
# Launch the app
|
25 |
+
CMD ["python", "app.py"]
|