Last active
November 19, 2015 22:17
-
-
Save chregu/0be89b4e88f2c3db202c to your computer and use it in GitHub Desktop.
Dockerfile for PHP 7.0 for Cloudfoundry
This file contains 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 characters
FROM ubuntu:14.04 | |
RUN apt-get update | |
RUN apt-get upgrade -y | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt-get install -y -f --force-yes php5-dev libaio1 make apache2-utils build-essential git libmcrypt-dev curl openssl libmagickwand-dev | |
RUN apt-get build-dep -y php5 | |
WORKDIR /root | |
RUN git clone https://github.com/php/php-src.git | |
RUN cd php-src && git remote update | |
RUN cd php-src && git checkout -b PHP-7.0.0 origin/PHP-7.0.0 | |
RUN cd php-src && ./buildconf --force | |
RUN cd php-src && ./configure --prefix=/tmp/staged/app/php \ | |
--enable-bcmath \ | |
--with-curl \ | |
--enable-soap \ | |
--with-zlib \ | |
--enable-mbstring \ | |
--with-openssl \ | |
--with-mysqli \ | |
--with-pdo-mysql \ | |
--enable-zip \ | |
--enable-opcache \ | |
--enable-fpm \ | |
--enable-xslt \ | |
--with-gd \ | |
--with-bzip \ | |
--with-mcrypt \ | |
--enable-intl | |
RUN cd php-src && make && make install | |
RUN git clone https://github.com/mkoppanen/imagick/ | |
RUN cd imagick && git checkout -b phpseven origin/phpseven | |
RUN cd imagick && /tmp/staged/app/php/bin/phpize && ./configure --with-php-config=/tmp/staged/app/php/bin/php-config && make && make install | |
#RUN /usr/local/bin/pecl install imagick | |
RUN apt-get clean && rm -rf /var/tmp/* | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment