Last active
April 25, 2024 20:48
-
-
Save jackdpeterson/c75eed4ac6e842e173fde80b56af3b04 to your computer and use it in GitHub Desktop.
Asterisk install_prereq tests - debian:[buster|bullseye|bookworm]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM --platform=linux/amd64 debian:bookworm | |
WORKDIR /app | |
RUN apt update \ | |
&& apt dist-upgrade -y \ | |
&& apt autoremove -y \ | |
&& apt install -y -q \ | |
build-essential \ | |
subversion \ | |
wget \ | |
&& rm -r /var/lib/apt/lists/* | |
COPY . /app | |
## Resolve Asterisk dependencies | |
RUN cd /app \ | |
&& ls -alh \ | |
&& ./contrib/scripts/get_mp3_source.sh \ | |
&& ./contrib/scripts/install_prereq install | |
RUN cd /app && ./configure --with-pjproject-bundled --with-jansson-bundled \ | |
&& make \ | |
&& make install \ | |
&& make config \ | |
&& rm -rf /app \ | |
&& mkdir -p /app | |
## Primary port | |
EXPOSE 5038/udp | |
EXPOSE 5038 | |
# SIP | |
EXPOSE 5060 | |
EXPOSE 5060/tcp | |
# IAX2 | |
EXPOSE 4569/udp | |
# IAX | |
EXPOSE 5036/udp | |
# MGCP | |
EXPOSE 2727 | |
# RTP -- Support the standard large port range | |
EXPOSE 10000-20000/udp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM --platform=linux/amd64 debian:bullseye | |
WORKDIR /app | |
RUN apt update \ | |
&& apt dist-upgrade -y \ | |
&& apt autoremove -y \ | |
&& apt install -y -q \ | |
build-essential \ | |
subversion \ | |
wget \ | |
&& rm -r /var/lib/apt/lists/* | |
COPY . /app | |
## Resolve Asterisk dependencies | |
RUN cd /app \ | |
&& ls -alh \ | |
&& ./contrib/scripts/get_mp3_source.sh \ | |
&& ./contrib/scripts/install_prereq install | |
RUN cd /app && ./configure --with-pjproject-bundled --with-jansson-bundled \ | |
&& make \ | |
&& make install \ | |
&& make config \ | |
&& rm -rf /app \ | |
&& mkdir -p /app | |
## Primary port | |
EXPOSE 5038/udp | |
EXPOSE 5038 | |
# SIP | |
EXPOSE 5060 | |
EXPOSE 5060/tcp | |
# IAX2 | |
EXPOSE 4569/udp | |
# IAX | |
EXPOSE 5036/udp | |
# MGCP | |
EXPOSE 2727 | |
# RTP -- Support the standard large port range | |
EXPOSE 10000-20000/udp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM --platform=linux/amd64 debian:buster | |
WORKDIR /app | |
RUN apt update \ | |
&& apt dist-upgrade -y \ | |
&& apt autoremove -y \ | |
&& apt install -y -q \ | |
build-essential \ | |
subversion \ | |
wget \ | |
&& rm -r /var/lib/apt/lists/* | |
COPY . /app | |
## Resolve Asterisk dependencies | |
RUN cd /app \ | |
&& ls -alh \ | |
&& ./contrib/scripts/get_mp3_source.sh \ | |
&& ./contrib/scripts/install_prereq install | |
RUN cd /app && ./configure --with-pjproject-bundled --with-jansson-bundled \ | |
&& make \ | |
&& make install \ | |
&& make config \ | |
&& rm -rf /app \ | |
&& mkdir -p /app | |
## Primary port | |
EXPOSE 5038/udp | |
EXPOSE 5038 | |
# SIP | |
EXPOSE 5060 | |
EXPOSE 5060/tcp | |
# IAX2 | |
EXPOSE 4569/udp | |
# IAX | |
EXPOSE 5036/udp | |
# MGCP | |
EXPOSE 2727 | |
# RTP -- Support the standard large port range | |
EXPOSE 10000-20000/udp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment