This repository was archived by the owner on Aug 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (28 loc) · 1.46 KB
/
Dockerfile
File metadata and controls
38 lines (28 loc) · 1.46 KB
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
FROM somleng/docker-freeswitch:latest
# Install jq for parsing JSON
RUN apt-get update && apt-get -y install jq libpq-dev libc-dev groff less
# Install the AWS CLI
RUN apt-get -y install curl unzip && \
mkdir -p /tmp/aws/ && cd /tmp/aws/ && \
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
unzip awscliv2.zip && \
./aws/install && \
cd / && \
rm -rf /tmp/aws && \
apt-get purge -y --auto-remove curl unzip
# Install required freeswitch modules
RUN apt-get update && apt-get install -y freeswitch-mod-console freeswitch-mod-logfile freeswitch-mod-rayo freeswitch-mod-sofia freeswitch-mod-dialplan-xml freeswitch-mod-commands freeswitch-mod-dptools freeswitch-mod-http-cache freeswitch-mod-httapi freeswitch-mod-sndfile freeswitch-mod-native-file freeswitch-mod-shout freeswitch-mod-json-cdr freeswitch-mod-flite freeswitch-mod-tone-stream freeswitch-mod-tts-commandline freeswitch-mod-pgsql \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# Convert mp3 to wav
RUN apt-get update && apt-get install -y mpg123
# Copy the Freeswitch configuration
COPY conf /etc/freeswitch
# Copy Bin Files
COPY bin/ /usr/local/bin/
RUN chown -R freeswitch:daemon /etc/freeswitch
RUN touch /var/log/freeswitch/freeswitch.log
RUN chown freeswitch:freeswitch /var/log/freeswitch/freeswitch.log
# Install the entrypoint script
COPY docker-entrypoint.sh /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["freeswitch"]