<commit_before>FROM ubuntu:16.04

MAINTAINER <NAME> <<EMAIL>>

# Set correct environment variables
ENV HOME /root
ENV TERM xterm
ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update && \
    apt-get install -y software-properties-common --no-install-recommends && \
    LANG=C.UTF-8 add-apt-repository ppa:nginx/stable && \
    LANG=C.UTF-8 add-apt-repository ppa:ondrej/php && \
    apt-get update && \
    apt-get install -y \
      sudo \
      nano \
      htop \
      git \
      supervisor \
      nginx \
      gettext \
      curl \
      mysql-client \
      php7.1-fpm \
      php7.1-cli \
      php7.1-common \
      php7.1-curl \
      php7.1-gd \
      php7.1-intl \
      php7.1-json \
      php7.1-ldap \
      php7.1-mcrypt \
      php7.1-mbstring \
      php7.1-mysql \
      php7.1-opcache \
      php7.1-xdebug \
      php7.1-xml \
      php7.1-redis \
      php7.1-zip && \
    apt-get remove --purge -y software-properties-common && \
    apt-get autoremove -y && \
    apt-get clean && \
    apt-get autoclean && \
    echo -n > /var/lib/apt/extended_states && \
    rm -rf /var/lib/apt/lists/* && \
    rm -rf /usr/share/man/?? && \
    rm -rf /usr/share/man/??_*

RUN phpenmod mcrypt

RUN /usr/bin/curl -sS https://getcomposer.org/installer | /usr/bin/php
RUN /bin/mv composer.phar /usr/local/bin/composer

# Nginx config
ADD ./cfg/nginx.conf /etc/nginx/nginx.conf

# PHP-FPM configs
ADD ./cfg/php-fpm.conf /etc/php/7.1/fpm/php-fpm.conf
ADD ./cfg/php.ini /etc/php/7.1/fpm/php.ini
ADD ./cfg/pool.d/www.conf /etc/php/7.1/fpm/pool.d/www.conf
ADD ./cfg/xdebug.ini ./etc/php/7.1/mods-available/xdebug.ini

# Supervisor config
ADD ./cfg/supervisord.conf /etc/supervisord.conf<commit_msg>Added ENV COMPOSER_ALLOW_SUPERUSER 1<commit_after>FROM ubuntu:16.04

MAINTAINER <NAME> <<EMAIL>>

# Set correct environment variables
ENV HOME /root
ENV TERM xterm
ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update && \
    apt-get install -y software-properties-common --no-install-recommends && \
    LANG=C.UTF-8 add-apt-repository ppa:nginx/stable && \
    LANG=C.UTF-8 add-apt-repository ppa:ondrej/php && \
    apt-get update && \
    apt-get install -y \
      sudo \
      nano \
      htop \
      git \
      supervisor \
      nginx \
      gettext \
      curl \
      mysql-client \
      php7.1-fpm \
      php7.1-cli \
      php7.1-common \
      php7.1-curl \
      php7.1-gd \
      php7.1-intl \
      php7.1-json \
      php7.1-ldap \
      php7.1-mcrypt \
      php7.1-mbstring \
      php7.1-mysql \
      php7.1-opcache \
      php7.1-xdebug \
      php7.1-xml \
      php7.1-redis \
      php7.1-zip && \
    apt-get remove --purge -y software-properties-common && \
    apt-get autoremove -y && \
    apt-get clean && \
    apt-get autoclean && \
    echo -n > /var/lib/apt/extended_states && \
    rm -rf /var/lib/apt/lists/* && \
    rm -rf /usr/share/man/?? && \
    rm -rf /usr/share/man/??_*

RUN phpenmod mcrypt

RUN /usr/bin/curl -sS https://getcomposer.org/installer | /usr/bin/php
RUN /bin/mv composer.phar /usr/local/bin/composer
ENV COMPOSER_ALLOW_SUPERUSER 1

# Nginx config
ADD ./cfg/nginx.conf /etc/nginx/nginx.conf

# PHP-FPM configs
ADD ./cfg/php-fpm.conf /etc/php/7.1/fpm/php-fpm.conf
ADD ./cfg/php.ini /etc/php/7.1/fpm/php.ini
ADD ./cfg/pool.d/www.conf /etc/php/7.1/fpm/pool.d/www.conf
ADD ./cfg/xdebug.ini ./etc/php/7.1/mods-available/xdebug.ini

# Supervisor config
ADD ./cfg/supervisord.conf /etc/supervisord.conf
{'fraction_non_alphanumeric': 0.15273775216138327, 'fraction_numerical': 0.027089337175792507, 'mean_word_length': 1.875724937862469, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, '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': '174979', 'n_tokens_mistral': 1459, 'n_tokens_neox': 1392, 'n_words': 249}