Skip to content

Instantly share code, notes, and snippets.

@felixcarpena
Created July 10, 2016 14:35
Show Gist options
  • Save felixcarpena/e0f064f725b41d0967305f3d2953afad to your computer and use it in GitHub Desktop.
Save felixcarpena/e0f064f725b41d0967305f3d2953afad to your computer and use it in GitHub Desktop.
Dockerfile from php 5-fpm with some usually used extensions
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