Centos7 + php 7.1 + ffmpeg Dockerfile

FROM centos:7.9.2009

RUN yum -y install automake fuse fuse-devel gcc-c++ git libcurl-devel libxml2-devel make openssl openssl-devel && \
rpm -Uvh https://nginx.org/packages/mainline/rhel/7/x86_64/RPMS/nginx-1.19.8-1.el7.ngx.x86_64.rpm && \
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && \
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm && \
yum -y install epel-release && \
yum -y install gcc gcc-c++ autoconf automake make && \
yum -y install zlib zlib-devel openssl openssl-devel pcre pcre-devel && \
yum -y install ack screen wget curl zip unzip ntpdate httpd-tools && \
yum -y install net-snmp net-snmp-devel net-snmp-utils vim git bind-utils && \
yum -y install tar nc htop iotop iftop telnet wget curl curl-devel salt-minion mtr && \
yum -y install nginx nginx-module-geoip && \
yum -y install libwebp-devel libwebp-tools ImageMagick ImageMagick-devel && \
yum -y install php71w php71w-fpm php71w-common php71w-cli php71w-devel php71w-intl php71w-mysqlnd php71w-pdo php71w-soap php71w-tidy php71w-xml php71w-xmlrpc php71w-zts php71w-gd php71w-mbstring php71w-mcrypt php71w-pecl-zendopcache php71w-pear php71w-posix php71w-mysqlnd php71w-pecl-redis && \
wget https://getcomposer.org/download/1.10.5/composer.phar -O /usr/local/bin/composer && \
chmod +x /usr/local/bin/composer

RUN rpm -v --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro && \
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm && \
yum install ffmpeg ffmpeg-devel -y && \
ffmpeg -version

发表评论