Public Repository

Last pushed: 2 months ago
Short Description
Short description is empty for this repo.
Full Description

5.6

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-imagick -y
RUN apt-get install php5-curl -y
RUN apt-get install php5-mysql -y
RUN apt-get install php5-mcrypt -y
RUN apt-get install php5-xdebug -y
RUN apt-get install apache2 -y
RUN apt-get install vim -y
RUN apt-get install nano -y
RUN apt-get install git -y
RUN apt-get install zip -y
RUN apt-get install libapache2-mod-php5 -y
RUN apt-get install curl -y
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 php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
RUN php composer-setup.php
RUN cp composer.phar /usr/bin/composer
RUN service apache2 restart
EXPOSE 80
CMD ["apache2ctl", "-D", "FOREGROUND"]

7.0:

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-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 php-soap -y
RUN apt-get install vim -y
RUN apt-get install nano -y
RUN apt-get install git -y
RUN apt-get install zip -y
RUN apt-get install apache2 -y
RUN apt-get install libapache2-mod-php7.0 -y
RUN apt-get install curl -y
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_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 php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
RUN php composer-setup.php
RUN cp composer.phar /usr/bin/composer
RUN service apache2 restart
EXPOSE 80
CMD ["apache2ctl", "-D", "FOREGROUND"]

7.1

FROM ubuntu:17.04
RUN apt-get update && \
apt-get install software-properties-common python-software-properties -y && \
apt-get install language-pack-en-base -y && \
export LC_ALL=en_US.UTF-8 && \
export LANG=en_US.UTF-8 && \
add-apt-repository ppa:ondrej/php -y
RUN apt-get update
RUN apt-get install php7.1 -y
RUN apt-get install php7.1-gd -y
RUN apt-get install php7.1-curl -y
RUN apt-get install php7.1-xml -y
RUN apt-get install php7.1-mysql
RUN apt-get install php7.1-mcrypt -y
RUN apt-get install php7.1-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 git -y
RUN apt-get install zip -y
RUN apt-get install apache2 -y
RUN apt-get install libapache2-mod-php7.1 -y
RUN apt-get install curl -y
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.1-dev -y
RUN pecl install apcu_bc-1.0.3 -y
RUN echo "extension=apcu.so" >> /etc/php/7.1/apache2/php.ini
RUN echo "extension=apc.so" >> /etc/php/7.1/apache2/php.ini
RUN a2enmod rewrite
RUN echo "xdebug.max_nesting_level=250" >> /etc/php/7.1/apache2/conf.d/20-xdebug.ini
RUN echo 'xdebug.remote_enable=1' >> /etc/php/7.1/apache2/conf.d/20-xdebug.ini
RUN echo 'xdebug.idekey=PHPSTORM' >> /etc/php/7.1/apache2/conf.d/20-xdebug.ini
RUN echo 'xdebug.remote_host=192.168.33.1' >> /etc/php/7.1/apache2/conf.d/20-xdebug.ini
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
RUN php composer-setup.php
RUN cp composer.phar /usr/bin/composer
RUN sed -i 's/a/b/g' /etc/php/7.1/apache2/php.ini
RUN service apache2 restart
EXPOSE 80
CMD ["apache2ctl", "-D", "FOREGROUND"]

Docker Pull Command
Owner
mediamonks

Comments (0)