Created
July 10, 2016 14:35
-
-
Save felixcarpena/e0f064f725b41d0967305f3d2953afad to your computer and use it in GitHub Desktop.
Dockerfile from php 5-fpm with some usually used extensions
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:5-fpm | |
RUN apt-get update \ | |
&& apt-get install -y git \ | |
&& apt-get install -y libmemcached-dev && apt-get install -y zlib1g-dev && pecl install memcached && docker-php-ext-enable memcached \ | |
&& apt-get install -y libmagickwand-dev && pecl install imagick && docker-php-ext-enable imagick \ | |
&& docker-php-ext-install bcmath \ | |
&& docker-php-ext-install opcache \ | |
&& docker-php-ext-install -j$(nproc) pdo_mysql \ | |
&& apt-get install -y libicu-dev && pecl install intl && docker-php-ext-enable intl \ | |
&& apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev \ | |
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \ | |
&& docker-php-ext-install -j$(nproc) gd \ | |
&& apt-get install -y libmcrypt-dev && docker-php-ext-install -j$(nproc) mcrypt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment