Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gansbrest/366c26a5e7ed36caaacaabd68232596c to your computer and use it in GitHub Desktop.
Save gansbrest/366c26a5e7ed36caaacaabd68232596c to your computer and use it in GitHub Desktop.
FROM php:7.1-apache
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng12-dev \
libicu-dev \
git \
unzip \
libpcre3-dev \
&& docker-php-ext-install -j$(nproc) zip intl mysqli iconv mcrypt opcache pdo pdo_mysql \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd \
&& pecl install redis-3.1.1 \
&& docker-php-ext-enable redis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment