Created
January 16, 2019 10:26
-
-
Save mahho/b89b2cf0b8825cde0e76f4e9beeae2a9 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 php:7.2-fpm | |
# Install recommended extensions for Symfony | |
RUN apt-get update -y && apt-get install -y libpng-dev zlib1g-dev libicu-dev libicu57 icu-devtools g++ | |
RUN docker-php-ext-configure intl | |
RUN docker-php-ext-configure pdo_mysql | |
RUN docker-php-ext-configure gd | |
RUN docker-php-ext-install intl pdo_mysql gd sockets bcmath mongo | |
#RUN docker-php-ext-enable pdo_mysql gd intl | |
RUN pecl install redis-4.0.1 \ | |
&& pecl install xdebug-2.6.0 \ | |
&& docker-php-ext-enable redis xdebug | |
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \ | |
&& php composer-setup.php \ | |
&& mv composer.phar /usr/local/bin/composer \ | |
&& php -r "unlink('composer-setup.php');" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment