<commit_before>FROM php:7.2-apache
ENV APACHE_DOCUMENT_ROOT /repo/web

RUN set -x \
  && apt-get update \
  && apt-get install -y --no-install-recommends \
    unzip libssl-dev libpcre3 libpcre3-dev zlib1g-dev libmagickwand-dev sendmail

RUN set -x \
  && cd /tmp \
  && curl -sSL -o php7.zip https://github.com/websupport-sk/pecl-memcache/archive/php7.zip \
  && unzip php7 \
  && cd pecl-memcache-php7 \
  && /usr/local/bin/phpize \
  && ./configure --with-php-config=/usr/local/bin/php-config \
  && make \
  && make install \
  && echo "extension=memcache.so" > /usr/local/etc/php/conf.d/ext-memcache.ini \
  && rm -rf /tmp/pecl-memcache-php7 php7.zip

RUN set -x \
  && docker-php-ext-install $(nproc) pdo_mysql mysqli mbstring gd \
  && pecl install imagick-3.4.3 \
  && docker-php-ext-enable imagick \
  && a2enmod rewrite

COPY entrypoint.sh /entrypoint.sh
COPY 000-default.conf /etc/apache2/sites-enabled/000-default.conf
COPY php.ini /usr/local/etc/php/php.ini

RUN set -x \
  && echo 'emlauncher:emlauncher' > /dbauth \
  && sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf \
  && sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf<commit_msg>Fix docker-php-ext-install "-j" option<commit_after>FROM php:7.2-apache
ENV APACHE_DOCUMENT_ROOT /repo/web

RUN set -x \
  && apt-get update \
  && apt-get install -y --no-install-recommends \
    unzip libssl-dev libpcre3 libpcre3-dev zlib1g-dev libmagickwand-dev sendmail

RUN set -x \
  && cd /tmp \
  && curl -sSL -o php7.zip https://github.com/websupport-sk/pecl-memcache/archive/php7.zip \
  && unzip php7 \
  && cd pecl-memcache-php7 \
  && /usr/local/bin/phpize \
  && ./configure --with-php-config=/usr/local/bin/php-config \
  && make \
  && make install \
  && echo "extension=memcache.so" > /usr/local/etc/php/conf.d/ext-memcache.ini \
  && rm -rf /tmp/pecl-memcache-php7 php7.zip

RUN set -x \
  && docker-php-ext-install -j$(nproc) pdo_mysql mysqli mbstring gd \
  && pecl install imagick-3.4.3 \
  && docker-php-ext-enable imagick \
  && a2enmod rewrite

COPY entrypoint.sh /entrypoint.sh
COPY 000-default.conf /etc/apache2/sites-enabled/000-default.conf
COPY php.ini /usr/local/etc/php/php.ini

RUN set -x \
  && echo 'emlauncher:emlauncher' > /dbauth \
  && sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf \
  && sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
{'fraction_non_alphanumeric': 0.17119244391971664, 'fraction_numerical': 0.02046438410074774, 'mean_word_length': 2.9410852713178293, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, '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': '620088', 'n_tokens_mistral': 1075, 'n_tokens_neox': 1027, 'n_words': 182}