当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 1.41 KB
一键复制 编辑 原始数据 按行查看 历史
SmithYan 提交于 2020-07-01 09:44 . First Commit
FROM centos:7.8.2003
MAINTAINER SmithYan <wy521wywy@163.com>
WORKDIR /usr/local/src/
RUN yum update -y && \
yum clean all && \
yum install -y http://files.freeswitch.org/freeswitch-release-1-6.noarch.rpm epel-release && \
yum install -y git alsa-lib-devel autoconf automake bison broadvoice-devel bzip2 curl-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 python-devel python-devel soundtouch-devel speex-devel sqlite-devel unbound-devel unixODBC-devel wget which yasm zlib-devel && \
git clone -b v1.6 https://gitee.com/YanSmith/freeswitch.git && \
cd /usr/local/src/freeswitch/ && \
./bootstrap.sh && \
./configure && \
make && \
make install && \
make samples && \
make cd-sounds-install && \
make cd-moh-install && \
ln -sf /usr/local/freeswitch/bin/freeswitch /usr/bin/ && \
ln -sf /usr/local/freeswitch/bin/fs_cli /usr/bin/ && \
EXPOSE 5060:5000/tcp 5060:5000/udp 5080/tcp 5080/udp
EXPOSE 5066/tcp 7443/tcp
EXPOSE 8021/tcp
EXPOSE 64535-65535/udp
CMD ["/bin/bash","freeswitch"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化