Skip to content

Instantly share code, notes, and snippets.

@jackdpeterson
Created April 25, 2024 20:32
Show Gist options
  • Save jackdpeterson/ffb76acca44b4b931cb985c07a6cfde7 to your computer and use it in GitHub Desktop.
Save jackdpeterson/ffb76acca44b4b931cb985c07a6cfde7 to your computer and use it in GitHub Desktop.
Asterisk install_prereq test for Debian Bullseye
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
ENV LAME_BIN=/usr/bin/lame
ENV NORMALIZE_BIN=/usr/bin/normalize-audio
ENV SOX_BIN=/usr/bin/sox
## 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