Dockerfile
568 Bytes
FROM php:5.6-fpm
COPY cn-sources.list /etc/apt/sources.list
RUN apt-get update && apt-get install -y \
libcurl4-openssl-dev \
libfreetype6-dev \
libjpeg-dev \
libpng12-dev \
libpq-dev \
libxml2-dev
RUN docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-install pdo_mysql json opcache gd dom fileinfo
# see https://secure.php.net/manual/en/opcache.installation.php
COPY opcache.ini /usr/local/etc/php/conf.d/opcache-recommended.ini
VOLUME /var/www/html
CMD ["php-fpm"]