SohomToom commited on
Commit
00ff86d
·
verified ·
1 Parent(s): 8b02d24

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -18
Dockerfile CHANGED
@@ -1,26 +1,18 @@
 
 
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
15
 
16
- # Copy files
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"]
 
1
+ #Dockerfile for OpenVoice CPU-compatible Hugging Face Space
2
+
3
  FROM python:3.10-slim
4
 
5
+ #System dependencies
 
 
 
 
6
 
7
+ RUN apt-get update &&
8
+ apt-get install -y git ffmpeg libsndfile1 libglib2.0-0 libsm6 libxext6 libxrender-dev fontconfig &&
9
+ apt-get clean && rm -rf /var/lib/apt/lists/*
10
 
11
+ #Create app directory
 
12
 
13
+ WORKDIR /app
 
14
 
15
+ #Install Python dependencies
 
16
 
17
+ COPY requirements.txt ./ RUN pip install --no
 
18