1 dockerfile
Luca Matteo Spoljarevic edited this page 2026-02-24 17:41:29 +01:00

Dockerfile

FROM debian:bookworm tells the container to pull the Debian Image.

ENV DEBIAN_FRONTEND=noninteractive tells Debian to be non-interactive.

 RUN apt-get update && apt-get install -y \
    wget curl gnupg2 sudo git vim ca-certificates lsb-release software-properties-common \
    systemd systemd-sysv dbus net-tools openssh-client \
    && apt-get clean

This just updates the repository and installs needed software.

WORKDIR /usr/src Changes the current directory.

COPY sng_freepbx_debian_install.sh . copies the script into the current directory.

RUN chmod +x ./sng_freepbx_debian_install.sh makes the script executable (needed later).

RUN ln -s /var/lib/asterisk/bin/fwconsole /usr/sbin/fwconsole || true Fix for fwconsole error.

EXPOSE 80 443 5060/udp 5160/udp 18000-18100/udp expose ports for FreePBX.

CMD ["/bin/bash"] Default shell entry.