Files
voicebot/asterisk/Dockerfile
2026-07-18 01:25:01 +03:30

32 lines
567 B
Docker

FROM andrius/asterisk:latest
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
gettext-base \
curl \
file \
sox \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
RUN pip3 install --break-system-packages \
requests \
pyst2
RUN mkdir -p \
/tmp/voicebot \
/var/lib/asterisk/sounds/custom \
/etc/asterisk-templates
COPY templates/ /etc/asterisk-templates/
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
EXPOSE 5060/udp
EXPOSE 5060/tcp
EXPOSE 10000-20000/udp
ENTRYPOINT ["/entrypoint.sh"]