Created
May 19, 2016 08:28
-
-
Save alexandr-parkhomenko/ad58070520db604e6035252e84095f4b to your computer and use it in GitHub Desktop.
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 characters
From ubuntu:15.10 | |
RUN date | |
RUN apt-get update && apt-get install -y git curl | |
# MySQL | |
RUN echo mysql-server mysql-server/root_password password 1 | debconf-set-selections; \ | |
echo mysql-server mysql-server/root_password_again password 1 | debconf-set-selections; | |
RUN apt-get -y install mysql-server | |
# Apache | |
RUN apt-get install -y apache2 | |
# Install php dependencies | |
RUN apt-get build-dep php5 -y | |
RUN apt-get install -y php-pear autoconf automake curl libcurl3-openssl-dev build-essential libxslt1-dev re2c libxml2 libxml2-dev bison libbz2-dev libreadline-dev \ | |
libfreetype6 libfreetype6-dev libpng12-0 libpng12-dev libjpeg-dev libjpeg8-dev libjpeg8 libgd-dev libgd3 libxpm4 libltdl7 libltdl-dev \ | |
libssl-dev openssl \ | |
gettext libgettextpo-dev libgettextpo0 \ | |
libicu-dev \ | |
libmhash-dev libmhash2 \ | |
libmcrypt-dev libmcrypt4 | |
# PHPBrew | |
RUN curl -L -O https://github.com/phpbrew/phpbrew/raw/master/phpbrew && chmod +x phpbrew && mv phpbrew /usr/local/bin/phpbrew | |
# Setup PHPBrew | |
RUN source ~/.phpbrew/bashrc | |
#RUN phpbrew init && echo '[[ -e ~/.phpbrew/bashrc ]] && source ~/.phpbrew/bashrc' >> .bashrc | |
phpbrew install 7.0.6 +default +dbs +gd +intl +icu +soap +mbstring +iconv +apxs2 | |
phpbrew install 5.5.35 +default +dbs +gd +intl +icu +soap +mbstring +iconv +apxs2 | |
RUN date |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment