Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM php:7.2-fpm
- MAINTAINER iwan.susanto@halalway.co.id
- RUN apt-get update && \
- apt-get install -y --force-yes --no-install-recommends \
- libmemcached-dev \
- libz-dev \
- libpq-dev \
- libjpeg-dev \
- libpng-dev \
- libfreetype6-dev \
- libssl-dev \
- libmcrypt-dev \
- openssh-server \
- libmagickwand-dev \
- cron \
- nano \
- libxml2-dev
- #install some base extensions
- RUN apt-get install -y \
- libzip-dev \
- zip \
- && docker-php-ext-configure zip --with-libzip \
- && docker-php-ext-install zip
- #####################################
- # Imagick:
- #####################################
- RUN pecl install imagick && \
- docker-php-ext-enable imagick
- # Install the PHP mcrypt extention (from PECL, mcrypt has been removed from PHP 7.2)
- RUN pecl install mcrypt-1.0.1
- RUN docker-php-ext-enable mcrypt
- # Install the PHP pdo_mysql extention
- RUN docker-php-ext-install pdo_mysql
- # Install GD
- RUN docker-php-ext-configure gd \
- --with-freetype-dir=/usr/include/ \
- --with-jpeg-dir=/usr/include/
- RUN docker-php-ext-install gd
- # Install GETTEXT
- RUN docker-php-ext-install gettext
Add Comment
Please, Sign In to add comment