Last active
November 28, 2016 20:08
-
-
Save piotrekkaminski/525e564ca4ef9beb841afd12b71f78e2 to your computer and use it in GitHub Desktop.
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 alexcheng/apache2-php7 | |
MAINTAINER Piotr Kaminski <peter@magento.com> | |
RUN a2enmod rewrite | |
RUN rm -rf /var/www/html/* | |
RUN curl -sS https://getcomposer.org/installer | php | |
RUN mv composer.phar /usr/local/bin/composer | |
RUN requirements="libpng12-dev libmcrypt-dev libmcrypt4 libcurl3-dev libfreetype6 libjpeg-turbo8 libjpeg-turbo8-dev libpng12-dev libfreetype6-dev libicu-dev libxslt1-dev" \ | |
&& apt-get update && apt-get install -y $requirements && rm -rf /var/lib/apt/lists/* \ | |
&& docker-php-ext-install pdo_mysql \ | |
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \ | |
&& docker-php-ext-install gd \ | |
&& docker-php-ext-install mcrypt \ | |
&& docker-php-ext-install mbstring \ | |
&& docker-php-ext-install zip \ | |
&& docker-php-ext-install intl \ | |
&& docker-php-ext-install xsl \ | |
&& docker-php-ext-install soap \ | |
&& requirementsToRemove="libpng12-dev libmcrypt-dev libcurl3-dev libpng12-dev libfreetype6-dev libjpeg-turbo8-dev" \ | |
&& apt-get purge --auto-remove -y $requirementsToRemove | |
RUN echo "memory_limit=2048M" > /usr/local/etc/php/conf.d/memory-limit.ini | |
WORKDIR /var/www | |
# Installation is to be executed later by scripts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment