SohomToom commited on
Commit
a8d10e7
·
verified ·
1 Parent(s): 5addb94

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -11
Dockerfile CHANGED
@@ -1,8 +1,14 @@
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
@@ -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 port for Gradio
22
  EXPOSE 7860
23
 
24
- # Launch the app
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"]