Skip to content

Commit 58f865c

Browse files
committed
Dockerfile updated
1 parent 6a59860 commit 58f865c

File tree

2 files changed

+9
-38
lines changed

2 files changed

+9
-38
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ services:
3939
MYSQL_DATABASE: '${DB_DATABASE}'
4040
MYSQL_USER: '${DB_USERNAME}'
4141
MYSQL_PASSWORD: '${DB_PASSWORD}'
42-
image: laravel-asterisk:19
42+
image: laravel-asterisk:latest
4343
ports:
4444
- '${UDP_PORT:-5060}:5060/udp'
4545
volumes:

runtimes/Dockerfile

Lines changed: 8 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -8,53 +8,24 @@ ARG MYSQL_DATABASE=asterisk
88
ARG MYSQL_USER=sail
99
ARG MYSQL_PASSWORD=password
1010

11-
WORKDIR /etc/asterisk
11+
ARG DEBIAN_FRONTEND=noninteractive
1212

13-
ENV DEBIAN_FRONTEND noninteractive
14-
ENV TZ=UTC
13+
WORKDIR /etc/asterisk
1514

1615
RUN apt update \
1716
&& apt upgrade -y \
18-
&& apt install -y --no-install-recommends --no-install-suggests \
19-
autoconf \
20-
binutils-dev \
21-
build-essential \
22-
ca-certificates \
23-
wget \
24-
curl \
25-
file \
26-
libcurl4-openssl-dev \
27-
libedit-dev \
28-
libgsm1-dev \
29-
libogg-dev \
30-
libpopt-dev \
31-
libresample1-dev \
32-
libspandsp-dev \
33-
libspeex-dev \
34-
libspeexdsp-dev \
35-
libsqlite3-dev \
36-
libsrtp2-dev \
37-
libssl-dev \
38-
libvorbis-dev \
39-
libxml2-dev \
40-
libxslt1-dev \
41-
odbcinst \
42-
portaudio19-dev \
43-
procps \
44-
unixodbc \
45-
odbc-mariadb \
46-
unixodbc-dev \
47-
uuid \
48-
uuid-dev \
49-
xmlstarlet \
17+
&& apt install -y wget build-essential subversion \
5018
&& cd /usr/src/ \
5119
&& wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-${ASTERISK_VERSION}-current.tar.gz \
5220
&& tar zxf asterisk-${ASTERISK_VERSION}-current.tar.gz \
5321
&& cd asterisk-${ASTERISK_VERSION}.*/ \
54-
&& ./configure --with-pjproject-bundled --with-jansson-bundled \
55-
&& make menuselect/menuselect menuselect-tree menuselect.makeopts \
22+
&& contrib/scripts/get_mp3_source.sh \
23+
&& contrib/scripts/install_prereq install \
24+
&& ./configure \
5625
&& make -j $(nproc) \
5726
&& make install \
27+
&& make config \
28+
&& ldconfig \
5829
&& useradd --system asterisk \
5930
&& chown -R asterisk:asterisk /etc/asterisk \
6031
/var/*/asterisk \

0 commit comments

Comments
 (0)