Skip to content

Instantly share code, notes, and snippets.

@bluetechy
Forked from nobiki/Dockerfile-php7-pthread
Last active November 6, 2018 11:45
Show Gist options
  • Select an option

  • Save bluetechy/b39f513d08ca14b8c461ab5ccfed672a to your computer and use it in GitHub Desktop.

Select an option

Save bluetechy/b39f513d08ca14b8c461ab5ccfed672a to your computer and use it in GitHub Desktop.

Revisions

  1. @nobiki nobiki renamed this gist Oct 4, 2017. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. @nobiki nobiki created this gist Oct 4, 2017.
    21 changes: 21 additions & 0 deletions gistfile1.txt
    Original 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