<commit_before>FROM php:7.0-fpm
# FROM phpdockerio/php7-fpm:latest

MAINTAINER inhere<<EMAIL>>

# 更换(debian 8)软件源
RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak
ADD data/resources/debian8.sources /etc/apt/sources.list

# Now,Install
RUN apt-get update && apt-get -y install openssl vim curl telnet git zip unzip

RUN apt-get install -y \
    libfreetype6-dev libjpeg62-turbo-dev libmcrypt-dev libpng12-dev \
    && docker-php-ext-install -j$(nproc) mcrypt \
    && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
    && docker-php-ext-install -j$(nproc) gd \

    # no dependency extension
    && docker-php-ext-install gettext mysqli opcache pdo_mysql sockets

# Install PECL extensions
RUN apt-get install -y \

    # for memcache
    zlib1g-dev \

    # for memcached
    libmemcached-dev \

    # for gearman
    libgearman-dev \

    && pecl install memcache && docker-php-ext-enable memcache \
    && pecl install memcached && docker-php-ext-enable memcached \
    && pecl install gearman && docker-php-ext-enable gearman \

    # no dependency
    && pecl install seaslog && docker-php-ext-enable seaslog \
    && pecl install xdebug && docker-php-ext-enable xdebug \
    && pecl install redis && docker-php-ext-enable redis \
    # && pecl install xhprof && docker-php-ext-enable xhprof<commit_msg>update, remove some ext for php 7.because them  not support php 7.<commit_after>FROM php:7.0-fpm
# FROM phpdockerio/php7-fpm:latest

MAINTAINER inhere<<EMAIL>>

# 更换(debian 8)软件源
RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak
ADD data/resources/debian8.sources /etc/apt/sources.list

# Now,Install
RUN apt-get update && apt-get -y install openssl vim curl telnet git zip unzip

RUN apt-get install -y \
    libfreetype6-dev libjpeg62-turbo-dev libmcrypt-dev libpng12-dev \
    && docker-php-ext-install -j$(nproc) mcrypt \
    && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
    && docker-php-ext-install -j$(nproc) gd \

    # no dependency extension
    && docker-php-ext-install gettext mysqli opcache pdo_mysql sockets

# Install PECL extensions
RUN apt-get install -y \

    # for memcache
    # zlib1g-dev \

    # for memcached 此php扩展不支持 php7
    # libmemcached-dev \

    # for gearman 此php扩展不支持 php7
    # libgearman-dev \

    # && pecl install memcache && docker-php-ext-enable memcache \
    # && pecl install memcached && docker-php-ext-enable memcached \
    # && pecl install gearman && docker-php-ext-enable gearman \

    # no dependency
    && pecl install seaslog && docker-php-ext-enable seaslog \
    && pecl install xdebug && docker-php-ext-enable xdebug \
    && pecl install redis && docker-php-ext-enable redis \
    # && pecl install xhprof && docker-php-ext-enable xhprof
{'fraction_non_alphanumeric': 0.12184724689165187, 'fraction_numerical': 0.009236234458259326, 'mean_word_length': 2.9717912552891397, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6690137', 'n_tokens_mistral': 1046, 'n_tokens_neox': 983, 'n_words': 232}