<commit_before>FROM php:7-fpm

#to have color and alias in bash
ENV TERM xterm
COPY .bashrc /root/.bashrc

#apt-update && composer
RUN apt-get -y update && \
    curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

#install dependencies
RUN apt-get -y install \
    imagemagick \
    graphicsmagick \
    gcc nasm build-essential make wget \
    git vim

#install MozJPEG
RUN \
    wget "https://github.com/mozilla/mozjpeg/releases/download/v3.1/mozjpeg-3.1-release-source.tar.gz" && \
    tar xvf "mozjpeg-3.1-release-source.tar.gz" && \
    cd mozjpeg && \
    ./configure && \
    make && \
    make install

#install phpUnit
RUN \
    wget https://phar.phpunit.de/phpunit.phar && \
    chmod +x phpunit.phar && \
    mv phpunit.phar /usr/local/bin/phpunit

#add www-data + mdkdir var folder
RUN usermod -u 1000 www-data && \
    mkdir -p /var/www/html/var && \
    chown -R www-data:www-data /var/www/html/var

CMD ["php-fpm"]<commit_msg>Update Dockerfile<commit_after>FROM php:7-fpm

#to have color and alias in bash
ENV TERM xterm
COPY .bashrc /root/.bashrc

#apt-update && composer
RUN apt-get -y update && \
    curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

#install dependencies
RUN apt-get -y install \
    imagemagick \
    graphicsmagick \
    gcc nasm build-essential make wget \
    git vim

#install MozJPEG
RUN \
    wget "https://github.com/mozilla/mozjpeg/releases/download/v3.1/mozjpeg-3.1-release-source.tar.gz" && \
    tar xvf "mozjpeg-3.1-release-source.tar.gz" && \
    cd mozjpeg && \
    ./configure && \
    make && \
    make install

#install phpUnit
RUN \
    wget https://phar.phpunit.de/phpunit.phar && \
    chmod +x phpunit.phar && \
    mv phpunit.phar /usr/local/bin/phpunit

#add www-data + mdkdir var folder
RUN usermod -u 1000 www-data && \
    mkdir -p /var/www/html/var/tmp && \
    chmod 777 -R /var/www/html/var/ && \
    chown -R www-data:www-data /var/www/html/var

CMD ["php-fpm"]
{'fraction_non_alphanumeric': 0.14574101427868044, 'fraction_numerical': 0.012309207287050714, 'mean_word_length': 2.503448275862069, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 13, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4792493', 'n_tokens_mistral': 809, 'n_tokens_neox': 754, 'n_words': 176}