<commit_before>FROM water/alpine
MAINTAINER water <EMAIL>

# 软件包安装
RUN apk add php7@community \
        php7-fpm@community \
        php7-opcache@community \
        php7-session@community \
        php7-xml@community \
        php7-ctype@community \
        php7-gd@community \
        php7-json@community \
        php7-posix@community \
        php7-curl@community \
        php7-dom@community \
        php7-pdo@community \
        php7-pdo_mysql@community \
        php7-sockets@community \
        php7-zlib@community \
        php7-mcrypt@community \
        php7-mysqli@community \
        php7-sqlite3@community \
        php7-bz2@community \
        php7-phar@community \
        php7-posix@community \
        php7-zip@community \
        php7-calendar@community \
        php7-iconv@community \
        php7-imap@community \
        php7-soap@community \
        php7-dev@community \
        php7-pear@community \
        php7-redis@testing \
        php7-mbstring@community \
        php7-xdebug@testing \
        php7-exif@community \
        php7-xsl@community \
        php7-ldap@community \
        php7-openssl@community \
        php7-bcmath@community

# 从国内镜像安装composer，并配置成默认从国内镜像安装composer包
# RUN php -r "readfile('http://install.phpcomposer.com/installer');" | php -- --install-dir=/bin/ --filename=composer
# RUN composer config -g repo.packagist composer https://packagist.phpcomposer.com

# 软件包参数配置
ENV PHP_MEMORY_LIMIT 512M
ENV MAX_UPLOAD 50M
ENV PHP_MAX_FILE_UPLOAD 200
ENV MAX_EXECUTION_TIME 600
ENV PHP_MAX_POST 100M

# RUN touch /etc/php7/fpm.d/none.conf
RUN chmod 777 -R /var/log/<commit_msg>增加php命令软链接，以方便操作<commit_after>FROM water/alpine
MAINTAINER water <EMAIL>

# 软件包安装
RUN apk add php7@community \
        php7-fpm@community \
        php7-opcache@community \
        php7-session@community \
        php7-xml@community \
        php7-ctype@community \
        php7-gd@community \
        php7-json@community \
        php7-posix@community \
        php7-curl@community \
        php7-dom@community \
        php7-pdo@community \
        php7-pdo_mysql@community \
        php7-sockets@community \
        php7-zlib@community \
        php7-mcrypt@community \
        php7-mysqli@community \
        php7-sqlite3@community \
        php7-bz2@community \
        php7-phar@community \
        php7-posix@community \
        php7-zip@community \
        php7-calendar@community \
        php7-iconv@community \
        php7-imap@community \
        php7-soap@community \
        php7-dev@community \
        php7-pear@community \
        php7-redis@testing \
        php7-mbstring@community \
        php7-xdebug@testing \
        php7-exif@community \
        php7-xsl@community \
        php7-ldap@community \
        php7-openssl@community \
        php7-bcmath@community

# 从国内镜像安装composer，并配置成默认从国内镜像安装composer包
# RUN php -r "readfile('http://install.phpcomposer.com/installer');" | php -- --install-dir=/bin/ --filename=composer
# RUN composer config -g repo.packagist composer https://packagist.phpcomposer.com

# 软件包参数配置
ENV PHP_MEMORY_LIMIT 512M
ENV MAX_UPLOAD 50M
ENV PHP_MAX_FILE_UPLOAD 200
ENV MAX_EXECUTION_TIME 600
ENV PHP_MAX_POST 100M

# RUN touch /etc/php7/fpm.d/none.conf
RUN ln -s /usr/bin/php7 /usr/bin/php
RUN chmod 777 -R /var/log/
{'fraction_non_alphanumeric': 0.10097323600973236, 'fraction_numerical': 0.034367396593673966, 'mean_word_length': 2.171648987463838, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '4182245', 'n_tokens_mistral': 1361, 'n_tokens_neox': 1203, 'n_words': 172}