<commit_before>FROM php:5.6-cli-alpine
MAINTAINER <NAME> <<EMAIL>>

# bash is for the docker entrypoint
# git is for composer
# bcmath is for phpunit
# sockets is for phpamqplib
# zip is for composer

RUN apk add --no-cache \
        bash \
        git \
        zlib-dev \
    && docker-php-ext-install \
        bcmath \
        sockets \
        zip \
    && apk add --no-cache $PHPIZE_DEPS \
    && pecl install xdebug \
    && docker-php-ext-enable xdebug \
    && apk del --no-cache $PHPIZE_DEPS

ADD https://getcomposer.org/installer /usr/local/bin/composer-setup.php
RUN php /usr/local/bin/composer-setup.php \
    --quiet \
    --install-dir=/usr/local/bin \
    --filename=composer

COPY docker/php/fs /
COPY . /ravens

ADD https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh \
    /usr/local/bin/wait-for-it.sh

RUN chmod 0755 /usr/local/bin/*.sh

VOLUME [ "/ravens" ]
WORKDIR /ravens

ENTRYPOINT ["bash", "/usr/local/bin/entrypoint.sh", "docker"]<commit_msg>Reduce size of PHP docker image<commit_after>FROM php:5.6-cli-alpine
MAINTAINER <NAME> <<EMAIL>>

# bash is for the docker entrypoint
# git is for composer
# bcmath is for phpunit
# sockets is for phpamqplib
# zip is for composer

RUN apk add --no-cache --virtual '.lightster-phpize-deps' \
        $PHPIZE_DEPS \
    && apk add --no-cache \
        bash \
        git \
        zlib-dev \
    && docker-php-ext-install \
        bcmath \
        sockets \
        zip \
    && pecl install xdebug \
    && docker-php-ext-enable xdebug \
    && apk del --no-cache .lightster-phpize-deps

ADD https://getcomposer.org/installer /usr/local/bin/composer-setup.php
RUN php /usr/local/bin/composer-setup.php \
    --quiet \
    --install-dir=/usr/local/bin \
    --filename=composer

COPY docker/php/fs /

ADD https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh \
    /usr/local/bin/wait-for-it.sh

RUN chmod 0755 /usr/local/bin/*.sh

VOLUME [ "/ravens" ]
WORKDIR /ravens

ENTRYPOINT ["bash", "/usr/local/bin/entrypoint.sh", "docker"]
{'fraction_non_alphanumeric': 0.14341463414634145, 'fraction_numerical': 0.005853658536585366, 'mean_word_length': 2.3458401305057097, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 4, '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': '5285648', 'n_tokens_mistral': 796, 'n_tokens_neox': 751, 'n_words': 162}