Public Repository

Last pushed: 7 months ago
Short Description
Ubuntu 16.04/15.04 + PHP 7.0.8/5.6.4
Full Description

Dockerfile for PHP 5.6.4:

FROM ubuntu:15.04
RUN apt-get update
RUN apt-get install php5 -y
RUN apt-get install php5-intl -y
RUN apt-get install php5-gd -y
RUN apt-get install php5-curl -y
RUN apt-get install php5-sybase -y
RUN apt-get install php5-odbc -y
RUN apt-get install php5-mysql -y
RUN apt-get install php5-mcrypt -y
RUN apt-get install tdsodbc -y
RUN apt-get install apache2 -y
RUN apt-get install php5-xdebug -y
RUN apt-get install vim -y
RUN apt-get install nano -y
RUN apt-get install libapache2-mod-php5 -y
RUN apt-get install curl -y
RUN sed -i '/<Directory \/var\/www\/>/,/<\/Directory>/ s/AllowOverride None/AllowOverride All/' /etc/apache2/apache2.conf
RUN sed -i '14i tds version = 8.0' /etc/freetds/freetds.conf
RUN sed -i '14i client charset = UTF-8' /etc/freetds/freetds.conf
RUN ln -sf /dev/stdout /var/log/apache2/access.log
RUN ln -sf /dev/stderr /var/log/apache2/error.log
RUN a2enmod rewrite
RUN echo "xdebug.max_nesting_level=250" >> /etc/php5/apache2/conf.d/20-xdebug.ini
RUN echo 'xdebug.remote_enable=1' >> /etc/php5/apache2/conf.d/20-xdebug.ini
RUN echo 'xdebug.idekey=PHPSTORM' >> /etc/php5/apache2/conf.d/20-xdebug.ini
RUN echo 'xdebug.remote_host=192.168.33.1' >> /etc/php5/apache2/conf.d/20-xdebug.ini
RUN service apache2 restart
EXPOSE 80
CMD ["apache2ctl", "-D", "FOREGROUND"]


Dockerfile for PHP 7.0.8:

FROM ubuntu:16.04
RUN apt-get update
RUN apt-get install php7.0 -y
RUN apt-get install php7.0-gd -y
RUN apt-get install php7.0-curl -y
RUN apt-get install php7.0-sybase -y
RUN apt-get install php7.0-odbc -y
RUN apt-get install php7.0-xml -y
RUN apt-get install php7.0-mysql
RUN apt-get install php7.0-mcrypt -y
RUN apt-get install php7.0-mbstring -y
RUN apt-get install php-xdebug -y
RUN apt-get install vim -y
RUN apt-get install nano -y
RUN apt-get install tdsodbc -y
RUN apt-get install apache2 -y
RUN apt-get install libapache2-mod-php7.0 -y
RUN apt-get install curl -y
RUN sed -i '/<Directory \/var\/www\/>/,/<\/Directory>/ s/AllowOverride None/AllowOverride All/' /etc/apache2/apache2.conf
RUN sed -i '14i tds version = 8.0' /etc/freetds/freetds.conf
RUN sed -i '14i client charset = UTF-8' /etc/freetds/freetds.conf
RUN ln -sf /dev/stdout /var/log/apache2/access.log
RUN ln -sf /dev/stderr /var/log/apache2/error.log
RUN apt-get install php7.0-dev -y
RUN pecl install apcu -y
RUN pecl install apcu_bc-1.0.3 -y
RUN echo "extension=apcu.so" >> /etc/php/7.0/apache2/php.ini
RUN echo "extension=apc.so" >> /etc/php/7.0/apache2/php.ini
RUN a2enmod rewrite
RUN echo "xdebug.max_nesting_level=250" >> /etc/php/7.0/apache2/conf.d/20-xdebug.ini
RUN echo 'xdebug.remote_enable=1' >> /etc/php/7.0/apache2/conf.d/20-xdebug.ini
RUN echo 'xdebug.idekey=PHPSTORM' >> /etc/php/7.0/apache2/conf.d/20-xdebug.ini
RUN echo 'xdebug.remote_host=192.168.33.1' >> /etc/php/7.0/apache2/conf.d/20-xdebug.ini
RUN service apache2 restart
EXPOSE 80
CMD ["apache2ctl", "-D", "FOREGROUND"]


Dockerfile for PHP 7.0.8-apcu:

FROM ubuntu:16.04
RUN apt-get update
RUN apt-get install php7.0 -y
RUN apt-get install php7.0-gd -y
RUN apt-get install php7.0-curl -y
RUN apt-get install php7.0-sybase -y
RUN apt-get install php7.0-odbc -y
RUN apt-get install php7.0-xml -y
RUN apt-get install php7.0-mysql
RUN apt-get install php7.0-mcrypt -y
RUN apt-get install php7.0-mbstring -y
RUN apt-get install php-xdebug -y
RUN apt-get install php-apcu -y
RUN apt-get install vim -y
RUN apt-get install nano -y
RUN apt-get install tdsodbc -y
RUN apt-get install apache2 -y
RUN apt-get install libapache2-mod-php7.0 -y
RUN apt-get install curl -y
RUN sed -i '/<Directory \/var\/www\/>/,/<\/Directory>/ s/AllowOverride None/AllowOverride All/' /etc/apache2/apache2.conf
RUN sed -i '14i tds version = 8.0' /etc/freetds/freetds.conf
RUN sed -i '14i client charset = UTF-8' /etc/freetds/freetds.conf
RUN ln -sf /dev/stdout /var/log/apache2/access.log
RUN ln -sf /dev/stderr /var/log/apache2/error.log
RUN a2enmod rewrite
RUN echo "xdebug.max_nesting_level=250" >> /etc/php/7.0/apache2/conf.d/20-xdebug.ini
RUN echo 'xdebug.remote_enable=1' >> /etc/php/7.0/apache2/conf.d/20-xdebug.ini
RUN echo 'xdebug.idekey=PHPSTORM' >> /etc/php/7.0/apache2/conf.d/20-xdebug.ini
RUN echo 'xdebug.remote_host=192.168.33.1' >> /etc/php/7.0/apache2/conf.d/20-xdebug.ini
RUN service apache2 restart
EXPOSE 80
CMD ["apache2ctl", "-D", "FOREGROUND"]

Docker Pull Command
Owner
eduandebruijne

Comments (0)