#FROM daocloud.io/centos:6 #MAINTAINER Larry <[email protected]> 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 # Install rpm 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 # Install epel # su -c ‘rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm‘ # Install some basic packages yum install -y gcc make automake bzip2 unzip patch subversion libjpeg-devel yasm gcc-c++ vim # Remove installed packages yum remove -y ffmpeg x264 # add conf echo ‘/usr/lib‘ >> /etc/ld.so.conf && echo ‘/usr/local/lib‘ >> /etc/ld.so.conf # Install codecs yum install -y faac-devel lame-devel amrnb-devel opencore-amr-devel amrwb-devel libvorbis-devel libtheora-devel xvidcore-devel yum install -y tar # install x264 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 .. # install libvpx 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 .. # install ffmpeg and ffprobe 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 # install qt-faststart 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"]
时间: 2024-12-14 18:09:15