first commit
This commit is contained in:
31
asterisk/Dockerfile
Normal file
31
asterisk/Dockerfile
Normal file
@@ -0,0 +1,31 @@
|
||||
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"]
|
||||
Reference in New Issue
Block a user