Skip to content

Instantly share code, notes, and snippets.

@kelunik
Last active August 29, 2015 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kelunik/418b3071c9798dd314c6 to your computer and use it in GitHub Desktop.
Save kelunik/418b3071c9798dd314c6 to your computer and use it in GitHub Desktop.
Docker PHP 7
FROM ubuntu:14.04
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y wget
RUN apt-get install -y unzip
RUN apt-get install -y gcc
RUN apt-get install -y make
RUN apt-get install -y autoconf
RUN apt-get install -y bison
RUN apt-get install -y libxml2-dev
RUN apt-get install -y libcurl4-openssl-dev
RUN apt-get install -y libxslt1-dev
WORKDIR /tmp
RUN wget -q https://github.com/php/php-src/archive/php-7.0.0RC1.zip
RUN unzip -q php-7.0.0RC1.zip
RUN rm php-7.0.0RC1.zip
RUN mv php-src-php-7.0.0RC1 release
WORKDIR /tmp/release
RUN ./buildconf --force
RUN ./configure \
--disable-all \
--prefix=/usr \
--with-config-file-path=/etc/php \
--with-libdir=/lib/x86_64-linux-gnu \
--with-openssl \
--with-zlib \
--with-curl \
--with-xsl \
--enable-phpdbg \
--enable-pdo \
--enable-sockets \
--enable-mbstring \
--enable-phar \
--enable-ctype \
--enable-hash \
--enable-json \
--enable-filter \
--enable-zip \
--enable-libxml \
--enable-simplexml \
--enable-xmlreader \
--enable-dom \
--enable-tokenizer \
--enable-posix \
--enable-pcntl
RUN make install -j4 > /dev/null
WORKDIR /tmp
RUN wget -qO- https://getcomposer.org/installer | php
RUN mv composer.phar /usr/local/bin/composer
RUN apt-get purge -y wget
RUN apt-get purge -y unzip
RUN apt-get purge -y gcc gcc-4.8
RUN apt-get purge -y make
RUN apt-get purge -y autoconf
RUN apt-get purge -y bison
RUN apt-get purge -y libxml2-dev
RUN apt-get purge -y libcurl4-openssl-dev
RUN apt-get purge -y libxslt1-dev
RUN apt-get purge -y manpages libgnutls-dev cpp cpp-4.8
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
CMD ["/app/vendor/bin/aerys", "-c", "/app/etc/aerys.php"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment