Spaces:
Running
Running
Update Dockerfile
Browse files- 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
|
| 9 |
-
RUN
|
| 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 |
-
|
| 15 |
|
| 16 |
-
# 3.
|
| 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 |
-
|
| 20 |
chmod +x /usr/share/mbrola/* && \
|
| 21 |
rm -rf /tmp/voices.zip /tmp/MBROLA-voices-master
|
| 22 |
|
| 23 |
-
# 4.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|