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 RUN mkdir -p cache && chmod 777 cache ENV NUMBA_CACHE_DIR=./cache ENV MPLCONFIGDIR=./cache EXPOSE 7860 CMD python app.py