frugalvox

A tiny VoIP IVR framework by hackers, for hackers
git clone git://git.luxferre.top/frugalvox.git
Log | Files | Refs | README | LICENSE

Dockerfile.slim (955B)


      1 FROM alpine:latest AS builder
      2 RUN apk update && apk add --no-cache build-base git automake autoconf libtool popt-dev
      3 WORKDIR /opt/src
      4 RUN git clone https://github.com/naggety/picotts.git
      5 WORKDIR /opt/src/picotts/pico
      6 RUN ./autogen.sh && ./configure && make && make install
      7 RUN strip /usr/local/lib/libttspico.so.*
      8 RUN strip /usr/local/bin/pico2wave
      9 
     10 FROM python:3.10-alpine
     11 USER root
     12 WORKDIR /usr/src/app
     13 RUN apk update && apk add --no-cache py3-numpy py3-yaml popt
     14 ENV PYTHONPATH=/usr/lib/python3.10/site-packages
     15 COPY --from=builder /usr/local/lib/libttspico.so* /usr/local/lib/
     16 COPY --from=builder /usr/local/bin/pico2wave /usr/local/bin/
     17 COPY --from=builder /usr/local/share/pico/ /usr/local/share/pico/
     18 COPY pyVoIP-1.6.4.patched-py3-none-any.whl ./
     19 RUN pip install --no-cache-dir pyVoIP-1.6.4.patched-py3-none-any.whl
     20 COPY fvx.py ./
     21 VOLUME /opt/config
     22 WORKDIR /opt/config
     23 ENTRYPOINT ["python", "-u", "/usr/src/app/fvx.py", "/opt/config/config.yaml"]