* https://freeswitch.org/confluence/
+
### Release notes:
* https://freeswitch.org/confluence/display/FREESWITCH/Release+Notes
-### Installation
+### Install from packages
+
+Step by step tutorials to install FreeSWITCH from packages:
+
+ * [Debian](https://freeswitch.org/confluence/display/FREESWITCH/Debian) [<b>Recommended</b>]
+ * [Raspberry Pi](https://freeswitch.org/confluence/display/FREESWITCH/Raspberry+Pi)
+ * [CentOS 7](https://freeswitch.org/confluence/display/FREESWITCH/CentOS+7+and+RHEL+7)
+
+### Build from source
-Step by step tutorials to install FreeSWITCH from packages or source code are available at:
+Example Dockerfiles to build FreeSWITCH and dependencies from source:
+ * https://github.com/signalwire/freeswitch/tree/dockerfile/docker/examples
- * [Debian 10 Buster](https://freeswitch.org/confluence/display/FREESWITCH/Debian+10+Buster) [<b>Recommended</b>]
+Step by step tutorials to build FreeSWITCH with provided dependency packages:
+ * [Debian](https://freeswitch.org/confluence/display/FREESWITCH/Debian#Debian-buildfromsource) [<b>Recommended</b>]
* [Raspberry Pi](https://freeswitch.org/confluence/display/FREESWITCH/Raspberry+Pi)
* [CentOS 7](https://freeswitch.org/confluence/display/FREESWITCH/CentOS+7+and+RHEL+7)
--- /dev/null
+FROM debian:bullseye\r
+MAINTAINER Andrey Volk <andrey@signalwire.com>\r
+\r
+RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq install git\r
+\r
+RUN git clone https://github.com/signalwire/freeswitch /usr/src/freeswitch\r
+RUN git clone https://github.com/signalwire/libks /usr/src/libs/libks\r
+RUN git clone https://github.com/freeswitch/sofia-sip /usr/src/libs/sofia-sip\r
+RUN git clone https://github.com/freeswitch/spandsp /usr/src/libs/spandsp\r
+RUN git clone https://github.com/signalwire/signalwire-c /usr/src/libs/signalwire-c\r
+\r
+RUN DEBIAN_FRONTEND=noninteractive apt-get -yq install \\r
+# build\r
+ build-essential cmake automake autoconf 'libtool-bin|libtool' pkg-config \\r
+# general\r
+ libssl-dev zlib1g-dev libdb-dev unixodbc-dev libncurses5-dev libexpat1-dev libgdbm-dev bison erlang-dev libtpl-dev libtiff5-dev uuid-dev \\r
+# core\r
+ libpcre3-dev libedit-dev libsqlite3-dev libcurl4-openssl-dev nasm \\r
+# core codecs\r
+ libogg-dev libspeex-dev libspeexdsp-dev \\r
+# mod_enum\r
+ libldns-dev \\r
+# mod_python3\r
+ python3-dev \\r
+# mod_av\r
+ libavformat-dev libswscale-dev libavresample-dev \\r
+# mod_lua\r
+ liblua5.2-dev \\r
+# mod_opus\r
+ libopus-dev \\r
+# mod_pgsql\r
+ libpq-dev \\r
+# mod_sndfile\r
+ libsndfile1-dev libflac-dev libogg-dev libvorbis-dev\r
+ \r
+RUN cd /usr/src/libs/libks && cmake . -DCMAKE_INSTALL_PREFIX=/usr -DWITH_LIBBACKTRACE=1 && make install\r
+RUN cd /usr/src/libs/sofia-sip && ./bootstrap.sh && ./configure CFLAGS="-g -ggdb" --with-pic --with-glib=no --without-doxygen --disable-stun --prefix=/usr && make -j`nproc --all` && make install\r
+RUN cd /usr/src/libs/spandsp && ./bootstrap.sh && ./configure CFLAGS="-g -ggdb" --with-pic --prefix=/usr && make -j`nproc --all` && make install\r
+RUN cd /usr/src/libs/signalwire-c && PKG_CONFIG_PATH=/usr/lib/pkgconfig cmake . -DCMAKE_INSTALL_PREFIX=/usr && make install\r
+\r
+RUN cd /usr/src/freeswitch && ./bootstrap.sh -j\r
+RUN cd /usr/src/freeswitch && ./configure\r
+RUN cd /usr/src/freeswitch && make -j`nproc` && make install\r
+\r
+# Cleanup the image\r
+RUN apt-get clean\r
+\r
+# Uncomment to cleanup even more\r
+#RUN rm -rf /usr/src/*
\ No newline at end of file