WillemVH commited on
Commit
6ee8500
·
verified ·
1 Parent(s): dbc1adf

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -7
Dockerfile CHANGED
@@ -1,16 +1,17 @@
1
  FROM python:3.9-slim
2
 
3
- # Install system dependencies (espeak-ng + ffmpeg)
4
  RUN apt-get update && \
5
- apt-get install -y espeak-ng ffmpeg && \
6
  rm -rf /var/lib/apt/lists/*
7
 
8
- # Copy Python files
 
 
 
 
9
  WORKDIR /app
10
  COPY . .
 
11
 
12
- # Install Python dependencies
13
- RUN pip install --no-cache-dir -r requirements.txt
14
-
15
- # Run Flask app
16
  CMD ["python", "app.py"]
 
1
  FROM python:3.9-slim
2
 
3
+ # Install system dependencies
4
  RUN apt-get update && \
5
+ apt-get install -y espeak-ng ffmpeg mbrola wget && \
6
  rm -rf /var/lib/apt/lists/*
7
 
8
+ # Download MBROLA voices (e.g., English, French)
9
+ COPY download_voices.sh .
10
+ RUN chmod +x download_voices.sh && ./download_voices.sh
11
+
12
+ # Set up app
13
  WORKDIR /app
14
  COPY . .
15
+ RUN pip install -r requirements.txt
16
 
 
 
 
 
17
  CMD ["python", "app.py"]