core-business/asterisk (sha256:b813ef69c59f2459fe4887d2088637127be49503212e11f0117c04963365f6e2)

Published 2026-10-17 20:52:12 +00:00 by kjones in CoRE/CoRE-Business

Installation

docker pull slop.writemy.codes/core/core-business/asterisk@sha256:b813ef69c59f2459fe4887d2088637127be49503212e11f0117c04963365f6e2
sha256:b813ef69c59f2459fe4887d2088637127be49503212e11f0117c04963365f6e2

About this package

Asterisk 20.20.1 on 3.24

Image layers

ADD alpine-minirootfs-3.24.2-x86_64.tar.gz / # buildkit
CMD ["/bin/sh"]
LABEL maintainer=Andrius Kairiukstis <k@andrius.mobi>
LABEL org.opencontainers.image.title=Asterisk PBX
LABEL org.opencontainers.image.description=Asterisk PBX 20.20.1 on Alpine (apk)
LABEL org.opencontainers.image.version=20.20.1
LABEL org.opencontainers.image.source=https://github.com/andrius/asterisk
LABEL org.opencontainers.image.vendor=Andrius Kairiukstis <k@andrius.mobi>
COPY cloudsmith-asterisk-alpine.rsa.pub /etc/apk/keys/alpine@asterisk-25B0C9A992BE0CEF.rsa.pub # buildkit
RUN /bin/sh -c echo "@andrius-asterisk https://dl.cloudsmith.io/public/asterisk/alpine/alpine/v3.24/main" >>/etc/apk/repositories && apk add --no-cache "asterisk@andrius-asterisk=20.20.1-r1" "asterisk-sample-config@andrius-asterisk=20.20.1-r1" "asterisk-opus@andrius-asterisk=20.20.1-r1" "asterisk-srtp@andrius-asterisk=20.20.1-r1" "asterisk-curl@andrius-asterisk=20.20.1-r1" "asterisk-speex@andrius-asterisk=20.20.1-r1" "asterisk-fax@andrius-asterisk=20.20.1-r1" "asterisk-odbc@andrius-asterisk=20.20.1-r1" "asterisk-ldap@andrius-asterisk=20.20.1-r1" "asterisk-pgsql@andrius-asterisk=20.20.1-r1" "asterisk-prometheus@andrius-asterisk=20.20.1-r1" "asterisk-mobile@andrius-asterisk=20.20.1-r1" bash shadow gettext procps ca-certificates curl tzdata && asterisk -V # buildkit
RUN /bin/sh -c groupmod -g 1000 asterisk && usermod -u 1000 -g 1000 -d /home/asterisk -s /bin/bash asterisk && mkdir -p /home/asterisk /var/run/asterisk /var/log/asterisk /var/spool/asterisk/monitor /var/spool/asterisk/outgoing /var/spool/asterisk/tmp /var/spool/asterisk/voicemail /var/spool/asterisk/fax /var/lib/asterisk/keys /var/lib/asterisk/phoneprov /var/lib/asterisk/sounds /var/lib/asterisk/docs # buildkit
COPY healthcheck.sh /usr/local/bin/healthcheck.sh # buildkit
COPY entrypoint.sh /usr/local/bin/entrypoint.sh # buildkit
RUN /bin/sh -c chmod +x /usr/local/bin/healthcheck.sh /usr/local/bin/entrypoint.sh && chown -R asterisk:asterisk /etc/asterisk /home/asterisk /var/lib/asterisk /var/log/asterisk /var/spool/asterisk /var/run/asterisk && chmod -R 750 /var/spool/asterisk # buildkit
VOLUME [/var/lib/asterisk/sounds /var/lib/asterisk/keys /var/lib/asterisk/phoneprov /var/spool/asterisk /var/log/asterisk /etc/asterisk]
HEALTHCHECK {Test:[CMD-SHELL /usr/local/bin/healthcheck.sh] Interval:30s Timeout:10s StartPeriod:30s StartInterval:0s Retries:3}
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
WORKDIR /home/asterisk
CMD ["/usr/sbin/asterisk" "-vvvdddf" "-T" "-W" "-U" "asterisk" "-p"]
USER root
ARG ASTERISK_PACKAGE_VERSION=20.20.1-r1
ARG UNIXODBC_PACKAGE_VERSION=2.3.14-r1
ARG PSQLODBC_PACKAGE_VERSION=16.00.0005-r1
RUN |3 ASTERISK_PACKAGE_VERSION=20.20.1-r1 UNIXODBC_PACKAGE_VERSION=2.3.14-r1 PSQLODBC_PACKAGE_VERSION=16.00.0005-r1 /bin/sh -c set -eux; apk add --no-cache "asterisk-odbc=${ASTERISK_PACKAGE_VERSION}" "asterisk-sounds-en@andrius-asterisk=${ASTERISK_PACKAGE_VERSION}" openssl "psqlodbc=${PSQLODBC_PACKAGE_VERSION}" "unixodbc=${UNIXODBC_PACKAGE_VERSION}" ; test -x /usr/bin/odbcinst; command -v openssl; if [ ! -d /usr/share/asterisk/sounds/en ] && [ -d /var/lib/asterisk/sounds/en ]; then mkdir -p /usr/share/asterisk/sounds; cp -R /var/lib/asterisk/sounds/en /usr/share/asterisk/sounds/en; fi; test -f /usr/share/asterisk/sounds/en/demo-congrats.gsm; driver_path="$(find /usr/lib /usr/lib64 -type f -name 'psqlodbcw.so' -print -quit 2>/dev/null)"; if [ -z "$driver_path" ]; then echo 'PostgreSQL Unicode ODBC driver library was not installed'; exit 1; fi; printf '[PostgreSQL Unicode]\nDescription=PostgreSQL Unicode ODBC driver\nDriver=%s\n' "$driver_path" > /tmp/psqlodbc.ini; odbcinst -i -d -f /tmp/psqlodbc.ini; odbcinst -q -d | grep -Fqx '[PostgreSQL Unicode]'; for module in chan_pjsip.so res_rtp_asterisk.so res_pjsip_endpoint_identifier_user.so res_pjsip_endpoint_identifier_ip.so res_pjsip_endpoint_identifier_anonymous.so res_http_media_cache.so cdr_pgsql.so res_odbc.so res_config_odbc.so; do module_path="$(find /usr/lib/asterisk/modules /usr/lib64/asterisk/modules -type f -name "$module" -print -quit 2>/dev/null)"; if [ -z "$module_path" ]; then echo "Missing required Asterisk module: $module"; exit 1; fi; done # buildkit
COPY /tmp/asterisk-20.20.1/apps/app_voicemail_odbc.so /usr/lib/asterisk/modules/app_voicemail_odbc.so # buildkit
RUN |3 ASTERISK_PACKAGE_VERSION=20.20.1-r1 UNIXODBC_PACKAGE_VERSION=2.3.14-r1 PSQLODBC_PACKAGE_VERSION=16.00.0005-r1 /bin/sh -c test -s /usr/lib/asterisk/modules/app_voicemail_odbc.so # buildkit
USER 1000:1000

Labels

Key Value
maintainer Andrius Kairiukstis <k@andrius.mobi>
org.opencontainers.image.created
org.opencontainers.image.description Asterisk 20.20.1 on 3.24
org.opencontainers.image.revision 11408fe7fffd8728938314e6063e488c10f18a0e
org.opencontainers.image.source https://github.com/andrius/asterisk
org.opencontainers.image.title Asterisk PBX
org.opencontainers.image.vendor Andrius Kairiukstis <k@andrius.mobi>
org.opencontainers.image.version 20.20.1
Details
Container
2026-10-17 20:52:12 +00:00
3
OCI / Docker
linux/amd64
33 MiB
Versions (5) View all