FROM python:3.9 | |
RUN apt update && apt install -y git make autoconf automake libtool pkg-config gcc libsonic-dev ronn kramdown libpcaudio-dev | |
RUN git clone https://github.com/projecte-aina/espeak-ng | |
RUN cd espeak-ng && \ | |
./autogen.sh && \ | |
./configure --prefix=/usr && \ | |
make && \ | |
make install | |
COPY requirements.txt . | |
COPY app.py . | |
RUN pip install -r requirements.txt | |
EXPOSE 7860 | |
CMD python app.py | |