-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
88 lines (43 loc) · 1.84 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
FROM ubuntu
RUN apt-get update
RUN apt-get install software-properties-common -y
RUN add-apt-repository ppa:mscore-ubuntu/mscore3-stable
RUN apt update
RUN apt install musescore3 -y
RUN ln -s /usr/bin/musescore3 /usr/bin/musescore
RUN apt install -y git
RUN git clone https://github.com/mathigatti/RealTimeSingingSynthesizer.git
WORKDIR "/RealTimeSingingSynthesizer/synthesisSoftware/libespeak-NG/"
RUN apt install -y make autoconf automake libtool pkg-config
RUN apt install -y gcc libsonic-dev ruby-ronn ruby-kramdown
RUN ls
RUN ./autogen.sh
RUN ./configure --prefix=/usr
RUN make
RUN ln -s /RealTimeSingingSynthesizer/synthesisSoftware/libespeak-NG/src/.libs/libespeak-ng.so /usr/lib/libespeak-ng.so
WORKDIR "/RealTimeSingingSynthesizer/synthesisSoftware/Sinsy-NG-0.0.1"
RUN ls
RUN mkdir build
WORKDIR "/RealTimeSingingSynthesizer/synthesisSoftware/Sinsy-NG-0.0.1/build"
RUN ls
RUN apt install -y cmake
RUN ls
RUN apt install -y build-essential
RUN apt install -y libsndfile1-dev
RUN apt install -y libsamplerate-dev
RUN cat ../CMakeLists.txt
RUN cmake ..
RUN make
WORKDIR "/RealTimeSingingSynthesizer"
RUN apt install -y python3-pip
ADD requirements.txt .
RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install -r requirements.txt
RUN ln -s /RealTimeSingingSynthesizer/synthesisSoftware/Sinsy-NG-0.0.1/build/libsinsy.so /lib/libsinsy.so
RUN ln -s /RealTimeSingingSynthesizer/synthesisSoftware/libespeak-NG/src/.libs/libespeak-ng.so.1 /usr/lib/libespeak-ng.so.1
RUN cp -r /RealTimeSingingSynthesizer/synthesisSoftware/libespeak-NG/espeak-ng-data /usr/share/
RUN apt-get -y update && apt-get -y install gcc && apt-get -y install libsndfile1-dev && apt-get -y install ffmpeg
RUN python3 -m pip install starlette uvicorn ujson aiofiles
ADD Voice.py .
ADD voice-api.py .
ENTRYPOINT ["python3", "-X", "utf8", "voice-api.py"]