rpm -Uvh http: //ftp .iij.ad.jp /pub/linux/fedora/epel/6/x86_64/epel-release-6-8 .noarch.rpm \
&& rpm -Uvh http: //rpms .famillecollet.com /enterprise/remi-release-6 .rpm
yum -y update \
&& yum install -y wget
wget http: //pkgs .repoforge.org /rpmforge-release/rpmforge-release-0 .5.3-1.el6.rf.x86_64.rpm \
&& rpm -- import http: //apt .sw.be /RPM-GPG-KEY .dag.txt \
&& rpm -K rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm \
&& rpm -i rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
yum install -y gcc make automake bzip2 unzip patch subversion libjpeg-devel yasm gcc-c++ vim
yum remove -y ffmpeg x264
echo '/usr/lib' >> /etc/ld .so.conf \
&& echo '/usr/local/lib' >> /etc/ld .so.conf
yum install -y faac-devel lame-devel amrnb-devel opencore-amr-devel amrwb-devel libvorbis-devel libtheora-devel xvidcore-devel
yum install -y tar
COPY last_stable_x264. tar .bz2 /libs/
cd /libs/ \
&& tar xvjf last_stable_x264. tar .bz2 \
&& cd x264* \
&& . /configure -- enable -shared -- enable -pic \
&& make && make install \
&& cd ..
COPY libvpx-v1.2.0. tar .bz2 /libs/
cd /libs/ && tar xvjf libvpx-v1.2.0. tar .bz2 \
&& cd libvpx-v1.2.0 \
&& . /configure -- enable -shared -- enable -pic \
&& make && make install \
&& cd ..
COPY ffmpeg-2.0.1. tar .bz2 /libs/
cd /libs/ && tar xvjf ffmpeg-2.0.1. tar .bz2 \
&& cd ffmpeg-2.0.1 \
&& . /configure -- enable -gpl -- enable -version3 -- enable -shared -- enable -nonfree -- enable -postproc -- enable -libfaac -- enable -libmp3lame -- enable -libopencore-amrnb -- enable -libopencore-amrwb -- enable -libtheora -- enable -libvorbis -- enable -libvpx -- enable -libx264 -- enable -libxvid \
&& make && make install \
&& ldconfig
cd /libs/ffmpeg-2 .0.1 && make tools /qt-faststart \
&& cp tools /qt-faststart /usr/local/bin
yum install -y mplayer mencoder flvtool2 httpd openssh-server supervisor mysql-server
mkdir -p /var//sshd && mkdir -p /var/log/supervisor
COPY supervisor.conf /etc/supervisor/conf .d /supervisor .conf
yum install -y --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof php-gd
COPY php.ini /etc/
EXPOSE 80 22
CMD [ "/usr/sbin/httpd" , "-k" , "start" ]
(责任编辑:IT) |