Update Dockerfile
Browse files- Dockerfile +12 -11
Dockerfile
CHANGED
@@ -1,8 +1,14 @@
|
|
1 |
-
#Use official Python image
|
2 |
FROM python:3.10-slim
|
3 |
|
4 |
-
#
|
5 |
-
RUN apt-get update && apt-get install -y
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
# Set working directory
|
8 |
WORKDIR /app
|
@@ -11,15 +17,10 @@ WORKDIR /app
|
|
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
|
22 |
EXPOSE 7860
|
23 |
|
24 |
-
#
|
25 |
CMD ["python", "app.py"]
|
|
|
|
|
1 |
FROM python:3.10-slim
|
2 |
|
3 |
+
# Install system dependencies
|
4 |
+
RUN apt-get update && apt-get install -y \
|
5 |
+
ffmpeg \
|
6 |
+
libsndfile1 \
|
7 |
+
&& rm -rf /var/lib/apt/lists/*
|
8 |
+
|
9 |
+
# Set writable cache dirs for librosa & numba
|
10 |
+
ENV MPLCONFIGDIR=/tmp
|
11 |
+
ENV NUMBA_CACHE_DIR=/tmp
|
12 |
|
13 |
# Set working directory
|
14 |
WORKDIR /app
|
|
|
17 |
COPY . .
|
18 |
|
19 |
# Install Python dependencies
|
20 |
+
RUN pip install --upgrade pip && pip install -r requirements.txt
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
+
# Expose default Gradio port
|
23 |
EXPOSE 7860
|
24 |
|
25 |
+
# Run the app
|
26 |
CMD ["python", "app.py"]
|