-
-
Save bluetechy/b39f513d08ca14b8c461ab5ccfed672a to your computer and use it in GitHub Desktop.
Revisions
-
nobiki renamed this gist
Oct 4, 2017 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
nobiki created this gist
Oct 4, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ FROM centos:7 MAINTAINER Naoaki Obiki RUN yum update -y RUN yum group install -y 'Development Tools' RUN yum install -y libxml2-devel wget RUN wget "http://jp2.php.net/get/php-7.0.9.tar.gz/from/this/mirror" -P /usr/local/src/ RUN mv /usr/local/src/mirror /usr/local/src/php-7.0.9.tar.gz RUN wget "http://pecl.php.net/get/pthreads-3.1.6.tgz" -P /usr/local/src/ RUN cd /usr/local/src/ && tar zxvf php-7.0.9.tar.gz RUN cd /usr/local/src/ && tar zxvf pthreads-3.1.6.tgz RUN mv /usr/local/src/pthreads-3.1.6 /usr/local/src/php-7.0.9/ext/pthreads RUN cd /usr/local/src/php-7.0.9 && ./buildconf --force RUN cd /usr/local/src/php-7.0.9 && ./configure --enable-debug --enable-maintainer-zts --enable-pthreads --enable-mbstring --prefix=/usr --with-config-file-path=/etc RUN cd /usr/local/src/php-7.0.9 && make RUN cd /usr/local/src/php-7.0.9 && make install RUN cp /usr/local/src/php-7.0.9/php.ini-development /etc/php.ini RUN echo 'include_path = "/usr/lib/php/"' >> /etc/php.ini