-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
52 lines (43 loc) · 1.21 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
FROM python:3.10-slim
WORKDIR /app/
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && apt install -y \
build-essential \
curl \
git \
make \
autoconf \
automake \
libtool \
pkg-config && \
apt clean && \
rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/SadeghKrmi/pertts-streamlit.git . && \
curl -LO https://github.com/rhasspy/piper/releases/download/v1.2.0/piper_amd64.tar.gz && \
tar -xvzf piper_amd64.tar.gz && \
rm -rf ./piper/espeak-ng-data && \
rm -rf piper_amd64.tar.gz
RUN git clone https://github.com/SadeghKrmi/espeak-ng.git && \
cd ./espeak-ng && \
chmod +x ./autogen.sh && \
./autogen.sh && \
./configure --prefix=/usr && \
make && \
make install && \
cp -r espeak-ng-data /app/piper/ && \
cd /app && \
pip3 install --no-cache-dir -r requirements.txt
RUN apt autoremove -y \
&& apt clean -y \
&& apt-get purge -y \
build-essential \
curl \
git \
make \
autoconf \
automake \
libtool \
pkg-config && \
rm -rf /app/espeak-ng
EXPOSE 8501
ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]