<commit_before>FROM alpine:3.10

# Install packages
RUN apk --no-cache add \
    php7 \
    php7-fpm \
    php7-json \
    php7-openssl \
    php7-curl \
    php7-zlib \
    php7-session \
    php7-mbstring \
    php7-gd \
    nginx \
    supervisor \
    curl

# Configure nginx
COPY config/nginx.conf /etc/nginx/nginx.conf
COPY config/default.conf /etc/nginx/conf.d/default.conf

# Configure PHP-FPM
COPY config/fpm-pool.conf /etc/php7/php-fpm.d/www.conf
COPY config/php.ini /etc/php7/conf.d/custom.ini

# Configure supervisord
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf

# Make sure files/folders needed by the processes are accessable when they run under the nobody user
RUN chown -R nobody.nobody /run \
  && chown -R nobody.nobody /var/lib/nginx \
  && chown -R nobody.nobody /var/tmp/nginx \<commit_msg>add php7-fileinfo<commit_after>FROM alpine:3.10

# Install packages
RUN apk --no-cache add \
    php7 \
    php7-fpm \
    php7-json \
    php7-openssl \
    php7-curl \
    php7-zlib \
    php7-session \
    php7-mbstring \
    php7-fileinfo \
    php7-gd \
    nginx \
    supervisor \
    curl

# Configure nginx
COPY config/nginx.conf /etc/nginx/nginx.conf
COPY config/default.conf /etc/nginx/conf.d/default.conf

# Configure PHP-FPM
COPY config/fpm-pool.conf /etc/php7/php-fpm.d/www.conf
COPY config/php.ini /etc/php7/conf.d/custom.ini

# Configure supervisord
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf

# Make sure files/folders needed by the processes are accessable when they run under the nobody user
RUN chown -R nobody.nobody /run \
  && chown -R nobody.nobody /var/lib/nginx \
  && chown -R nobody.nobody /var/tmp/nginx \
{'fraction_non_alphanumeric': 0.11379716981132075, 'fraction_numerical': 0.01768867924528302, 'mean_word_length': 2.602972399150743, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '7334068', 'n_tokens_mistral': 682, 'n_tokens_neox': 638, 'n_words': 142}