WillemVH commited on
Commit
034ffc2
·
verified ·
1 Parent(s): 251577e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -9
Dockerfile CHANGED
@@ -5,22 +5,24 @@ RUN apt-get update && \
5
  apt-get install -y espeak-ng ffmpeg wget unzip && \
6
  rm -rf /var/lib/apt/lists/*
7
 
8
- # 2. Install MBROLA from official site (working as of 2024)
9
- RUN mkdir -p /usr/share/mbrola && \
10
- wget https://www.phonetik.uni-muenchen.de/~mbrola/download/linux/mbrola3.0.2h_x86-64.tar.gz -O /tmp/mbrola.tar.gz && \
11
- tar -xzf /tmp/mbrola.tar.gz -C /tmp && \
12
- mv /tmp/mbrola-linux-amd64 /usr/bin/mbrola && \
13
  chmod +x /usr/bin/mbrola && \
14
- rm /tmp/mbrola.tar.gz
15
 
16
- # 3. Download voices from alternative source
17
  RUN wget https://github.com/numediart/MBROLA-voices/archive/refs/heads/master.zip -O /tmp/voices.zip && \
18
  unzip /tmp/voices.zip -d /tmp && \
19
- mv /tmp/MBROLA-voices-master/data/* /usr/share/mbrola/ && \
20
  chmod +x /usr/share/mbrola/* && \
21
  rm -rf /tmp/voices.zip /tmp/MBROLA-voices-master
22
 
23
- # 4. Set up app
 
 
 
 
 
24
  WORKDIR /app
25
  COPY . .
26
  RUN pip install -r requirements.txt
 
5
  apt-get install -y espeak-ng ffmpeg wget unzip && \
6
  rm -rf /var/lib/apt/lists/*
7
 
8
+ # 2. Install MBROLA from verified GitHub mirror
9
+ RUN wget https://github.com/numediart/MBROLA/raw/master/Binaries/mbrola-linux-amd64 -O /usr/bin/mbrola && \
 
 
 
10
  chmod +x /usr/bin/mbrola && \
11
+ mkdir -p /usr/share/mbrola
12
 
13
+ # 3. Install voices from GitHub archive
14
  RUN wget https://github.com/numediart/MBROLA-voices/archive/refs/heads/master.zip -O /tmp/voices.zip && \
15
  unzip /tmp/voices.zip -d /tmp && \
16
+ find /tmp/MBROLA-voices-master/data -type f -exec mv {} /usr/share/mbrola/ \; && \
17
  chmod +x /usr/share/mbrola/* && \
18
  rm -rf /tmp/voices.zip /tmp/MBROLA-voices-master
19
 
20
+ # 4. Verify installation
21
+ RUN echo "Testing MBROLA installation..." && \
22
+ mbrola -h && \
23
+ ls /usr/share/mbrola
24
+
25
+ # 5. Set up app
26
  WORKDIR /app
27
  COPY . .
28
  RUN pip install -r requirements.txt