forked from dusty-nv/jetson-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (32 loc) · 1.19 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#---
# name: voicecraft
# group: audio
# docs: docs.md
# depends: [audiocraft, whisperx]
#---
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
WORKDIR /opt
# Install dependencies"
RUN apt-get update && \
apt-get install -y --no-install-recommends espeak-ng && \
apt-get install -y --no-install-recommends ffmpeg && \
apt-get install -y espeak espeak-data libespeak1 libespeak-dev && \
apt-get install -y festival* && \
apt-get install -y build-essential && \
apt-get install -y flac libasound2-dev libsndfile1-dev vorbis-tools && \
apt-get install -y libxml2-dev libxslt-dev zlib1g-dev && \
rm -rf /var/lib/apt/lists/* && \
apt-get clean
RUN pip3 install phonemizer && \
pip3 install torchmetrics
# Clone the repository:
RUN git clone https://github.com/jasonppy/VoiceCraft.git && \
cd VoiceCraft && \
sed 's|^whisperx.*||' -i gradio_requirements.txt && \
sed 's|^huggingface_hub.*||' -i gradio_requirements.txt && \
cat gradio_requirements.txt && \
pip install -r gradio_requirements.txt
WORKDIR /opt/VoiceCraft/
# ENTRYPOINT [ “python3”, “gradio_app.py”, "--server_name", "0.0.0.0" ]
CMD [ "python3", "./gradio_app.py" , "--server_name" , "0.0.0.0" ]