File size: 1,139 Bytes
3288e01 c5b1a1d c19313c 23ce701 c5b1a1d f9a6282 c5b1a1d 355a767 c5b1a1d 7f0cc16 355a767 7514dcc 58b3ffd bfa1ccb 355a767 bfa1ccb 7f0cc16 7f0efc6 |
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 |
FROM python:3.9
RUN apt-get update && apt-get install -y gnupg && \
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 A3A48C4A && \
echo "deb http://ppa.launchpad.net/zeehio/festcat/ubuntu bionic main" >> /etc/apt/sources.list && \
echo "deb-src http://ppa.launchpad.net/zeehio/festcat/ubuntu bionic main" >> /etc/apt/sources.list && \
apt-get update && \
apt-get -y install lame git make autoconf automake libtool pkg-config gcc libsonic-dev ronn kramdown libpcaudio-dev libatlas-base-dev gfortran
RUN git clone -b dev-ca https://github.com/projecte-aina/espeak-ng
RUN cd espeak-ng && \
./autogen.sh && \
./configure --prefix=/usr && \
make && \
make install
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
# Set the working directory to the user's home directory
WORKDIR $HOME/app
COPY --chown=user requirements.txt .
RUN pip install -r requirements.txt
COPY --chown=user app.py .
RUN mkdir -p cache && chmod 777 cache
ENV NUMBA_CACHE_DIR=/home/user/cache
ENV MPLCONFIGDIR=/home/user/cache
EXPOSE 7860
CMD ["python", "app.py"]
|