freeswitch docker部署

Freeswitch是c代码,所以核心是说需要copy binary以及binary的依赖的动态库,以及安装所需要的环境,
所以我们选择基于linux的CentOs的操作系统为base,安装依赖库。
copy安装目录所有的东西包括configure文件等。开放所需端口,然后启动服务即可。

1)FROM centOS7
2)WORKDIR
3)COPY ./
4) EXPOSE
5) start.sh 没有给出来,很简单的脚本,替换IP、起freeswitch等

====================================================

FROM docker.v2.aispeech.com/aispeech/centos-base:7
MAINTAINER Wang WenHua

WORKDIR /usr/local/freeswitch/

RUN yum install -y git alsa-lib-devel autoconf automake bison broadvoice-devel bzip2 curl-devel db-devel e2fsprogs-devel flite-devel g722_1-devel gcc-c++ gdbm-devel gnutls-devel ilbc2-devel ldns-devel libcodec2-devel libcurl-devel libedit-devel libidn-devel libjpeg-devel libmemcached-devel libogg-devel libsilk-devel libsndfile-devel libtheora-devel libtiff-devel libtool libuuid-devel libvorbis-devel libxml2-devel lua-devel lzo-devel mongo-c-driver-devel ncurses-devel net-snmp-devel openssl-devel opus-devel pcre-devel perl perl-ExtUtils-Embed pkgconfig portaudio-devel postgresql-devel python26-devel python-devel soundtouch-devel speex-devel sqlite-devel unbound-devel unixODBC-devel wget which yasm zlib-devel

COPY ./ /usr/local/freeswitch/

EXPOSE 6060
CMD ["bash","start.sh"]

你可能感兴趣的:(freeswitch)